Show More
@@ -218,8 +218,9 b' def map_vcs_exceptions(func):' | |||
|
218 | 218 | |
|
219 | 219 | if kind: |
|
220 | 220 | if any(e.args): |
|
221 | args = [a for a in e.args] | |
|
222 | args.insert(0, '{}:'.format(exc_name)) # prefix first arg with org exc name | |
|
221 | _args = [a for a in e.args] | |
|
222 | # replace the first argument with a prefix exc name | |
|
223 | args = ['{}:'.format(exc_name, _args[0] if _args else '?')] + _args[1:] | |
|
223 | 224 | else: |
|
224 | 225 | args = [__traceback_info__ or '{}: UnhandledException'.format(exc_name)] |
|
225 | 226 | if debug or __traceback_info__ and kind not in ['unhandled', 'lookup']: |
General Comments 0
You need to be logged in to leave comments.
Login now