aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-02-10 19:40:04 -0600
committerAnthony Wang2022-02-10 19:40:04 -0600
commitf510595962a5fd0878af13a50a36dcc12d465088 (patch)
treea51c50b7306386325a0169c39effbe598173a766
parent2e7e99c8e26411f6b52da2e56c2cc3f19509f831 (diff)
Print exception message if printing fails
-rwxr-xr-xmkbinder.py3
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