From 9778c103ef5328d2e9b8f032f600222185871f07 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Wed, 17 May 2017 16:27:52 +0200 Subject: [PATCH] serve: fix incorrect type of exception_short for Errors --- src/borg/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/remote.py b/src/borg/remote.py index 7a54ea70e..c32ba9e6a 100644 --- a/src/borg/remote.py +++ b/src/borg/remote.py @@ -252,7 +252,7 @@ def serve(self): ex_short = traceback.format_exception_only(e.__class__, e) ex_full = traceback.format_exception(*sys.exc_info()) if isinstance(e, Error): - ex_short = e.get_message() + ex_short = [e.get_message()] if isinstance(e, (Repository.DoesNotExist, Repository.AlreadyExists, PathNotAllowed)): # These exceptions are reconstructed on the client end in RemoteRepository.call_many(), # and will be handled just like locally raised exceptions. Suppress the remote traceback