# HG changeset patch # User Milka Kuzminski # Date 2021-01-08 08:24:07 # Node ID 2f4cea33adbb1a13f0b474b7ae62ead7b028690d # Parent 279dbe3d2a89763cb97ae6403e392e251b0330ba svn: don't print exceptions in case of safe calls diff --git a/vcsserver/svn.py b/vcsserver/svn.py --- a/vcsserver/svn.py +++ b/vcsserver/svn.py @@ -498,15 +498,15 @@ class SvnRemote(RemoteBase): return ''.join(p), ''.join(p.error) except (EnvironmentError, OSError) as err: - cmd = ' '.join(cmd) # human friendly CMD - tb_err = ("Couldn't run svn command (%s).\n" - "Original error was:%s\n" - "Call options:%s\n" - % (cmd, err, _opts)) - log.exception(tb_err) if safe_call: return '', err else: + cmd = ' '.join(cmd) # human friendly CMD + tb_err = ("Couldn't run svn command (%s).\n" + "Original error was:%s\n" + "Call options:%s\n" + % (cmd, err, _opts)) + log.exception(tb_err) raise exceptions.VcsException()(tb_err) @reraise_safe_exceptions