From f510595962a5fd0878af13a50a36dcc12d465088 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 10 Feb 2022 19:40:04 -0600 Subject: Print exception message if printing fails --- mkbinder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2