# HG changeset patch # User Milka Kuzminski # Date 2020-12-09 08:19:02 # Node ID d20c3f2da658d33fa0455a0008f8e606a20172d4 # Parent da712db0c1bbfa13a78fa2405349094551301637 exceptions: fixed truncated exception text diff --git a/rhodecode/lib/vcs/exceptions.py b/rhodecode/lib/vcs/exceptions.py --- a/rhodecode/lib/vcs/exceptions.py +++ b/rhodecode/lib/vcs/exceptions.py @@ -219,7 +219,7 @@ def map_vcs_exceptions(func): if kind: if any(e.args): args = [a for a in e.args] - args[0] = '{}:'.format(exc_name) # prefix first arg with org exc name + args.insert(0, '{}:'.format(exc_name)) # prefix first arg with org exc name else: args = [__traceback_info__ or '{}: UnhandledException'.format(exc_name)] if debug or __traceback_info__ and kind not in ['unhandled', 'lookup']: