diff --git a/borg/helpers.py b/borg/helpers.py index e9b8d9a3a..fad401a52 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -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