exc: fixed exceptions prefix (again)
This commit is contained in:
parent
331be00be4
commit
98901bb75e
1 changed files with 3 additions and 2 deletions
|
|
@ -218,8 +218,9 @@ def map_vcs_exceptions(func):
|
|||
|
||||
if kind:
|
||||
if any(e.args):
|
||||
args = [a for a in e.args]
|
||||
args.insert(0, '{}:'.format(exc_name)) # prefix first arg with org exc name
|
||||
_args = [a for a in e.args]
|
||||
# replace the first argument with a prefix exc name
|
||||
args = ['{}:'.format(exc_name, _args[0] if _args else '?')] + _args[1:]
|
||||
else:
|
||||
args = [__traceback_info__ or '{}: UnhandledException'.format(exc_name)]
|
||||
if debug or __traceback_info__ and kind not in ['unhandled', 'lookup']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue