mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
serve: fix incorrect type of exception_short for Errors
This commit is contained in:
parent
0ad210c47b
commit
9778c103ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue