From 331be00be4bf50b15d69fabb3144ed0561595fa7 Mon Sep 17 00:00:00 2001 From: Milka Kuzminski Date: Wed, 9 Dec 2020 09:19:02 +0100 Subject: [PATCH] exceptions: fixed truncated exception text --- rhodecode/lib/vcs/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/vcs/exceptions.py b/rhodecode/lib/vcs/exceptions.py index 6b0327d0..237a0320 100644 --- 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']: