Correctly exit program after KeyboardInterrupt

This commit is contained in:
Anthony Wang 2022-01-22 22:39:15 -06:00
parent 53b7908df5
commit d99b262835
Signed by: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -41,5 +41,6 @@ for category in os.listdir('Links'):
open(name, 'wb').write(pdf)
except KeyboardInterrupt:
print('😭 Exiting')
exit()
except:
print('😱 Error when printing')