diff options
author | Anthony Wang | 2022-02-10 19:40:04 -0600 |
---|---|---|
committer | Anthony Wang | 2022-02-10 19:40:04 -0600 |
commit | f510595962a5fd0878af13a50a36dcc12d465088 (patch) | |
tree | a51c50b7306386325a0169c39effbe598173a766 | |
parent | 2e7e99c8e26411f6b52da2e56c2cc3f19509f831 (diff) |
Print exception message if printing fails
-rwxr-xr-x | mkbinder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkbinder.py b/mkbinder.py index 587701a..607e197 100755 --- a/mkbinder.py +++ b/mkbinder.py @@ -44,8 +44,9 @@ for category in os.listdir('Links'): except KeyboardInterrupt: print('😠Exiting') exit() - except: + except Exception as e: print('😱 Error when printing') + print(e) failed.append(name) # Output failed downloads |