1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00

Merge branch 'print_exc' of ../attic

This commit is contained in:
Thomas Waldmann 2015-05-17 23:08:21 +02:00
commit 6c74cae47e

View file

@ -10,6 +10,7 @@
import stat
import sys
import textwrap
import traceback
from attic import __version__
from attic.archive import Archive, ArchiveChecker
@ -852,12 +853,14 @@ def main():
try:
exit_code = archiver.run(sys.argv[1:])
except Error as e:
traceback.print_exc()
archiver.print_error(e.get_message())
exit_code = e.exit_code
except RemoteRepository.RPCError as e:
print(e)
exit_code = 1
except KeyboardInterrupt:
traceback.print_exc()
archiver.print_error('Error: Keyboard interrupt')
exit_code = 1
else: