##// END OF EJS Templates
hooklib: force an exception wrapped by errors.Abort to bytestr...
Matt Harbison -
r50760:5392bf25 default
parent child Browse files
Show More
@@ -32,7 +32,10 b' from mercurial import ('
32 32 pycompat,
33 33 registrar,
34 34 )
35 from mercurial.utils import dateutil
35 from mercurial.utils import (
36 dateutil,
37 stringutil,
38 )
36 39 from .. import notify
37 40
38 41 configtable = {}
@@ -98,7 +101,7 b' def _report_commit(ui, repo, ctx):'
98 101 try:
99 102 msg = mail.parsebytes(data)
100 103 except emailerrors.MessageParseError as inst:
101 raise error.Abort(inst)
104 raise error.Abort(stringutil.forcebytestr(inst))
102 105
103 106 msg['In-reply-to'] = notify.messageid(ctx, domain, messageidseed)
104 107 msg['Message-Id'] = notify.messageid(
@@ -31,7 +31,10 b' from mercurial import ('
31 31 pycompat,
32 32 registrar,
33 33 )
34 from mercurial.utils import dateutil
34 from mercurial.utils import (
35 dateutil,
36 stringutil,
37 )
35 38 from .. import notify
36 39
37 40 configtable = {}
@@ -97,7 +100,7 b' def _report_commit(ui, repo, ctx):'
97 100 try:
98 101 msg = mail.parsebytes(data)
99 102 except emailerrors.MessageParseError as inst:
100 raise error.Abort(inst)
103 raise error.Abort(stringutil.forcebytestr(inst))
101 104
102 105 msg['In-reply-to'] = notify.messageid(ctx, domain, messageidseed)
103 106 msg['Message-Id'] = notify.messageid(
General Comments 0
You need to be logged in to leave comments. Login now