mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-30 19:21:17 +00:00
helpers: fix "undefined name 'e'" in exception handler
This commit is contained in:
parent
745007bd12
commit
278cf0b9ad
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ def format_line(format, data):
|
|||
except (KeyError, ValueError) as e:
|
||||
# this should catch format errors
|
||||
print('Error in lineformat: "{}" - reason "{}"'.format(format, str(e)))
|
||||
except:
|
||||
except Exception as e:
|
||||
# something unexpected, print error and raise exception
|
||||
print('Error in lineformat: "{}" - reason "{}"'.format(format, str(e)))
|
||||
raise
|
||||
|
|
Loading…
Reference in a new issue