summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmargfools5
1 files changed, 2 insertions, 3 deletions
diff --git a/margfools b/margfools
index cf4de00..759968e 100755
--- a/margfools
+++ b/margfools
@@ -8,7 +8,6 @@ import os
import pathlib
import subprocess
import sys
-import traceback
import urllib.parse
import getpass
@@ -109,6 +108,6 @@ if __name__ == '__main__':
if not r.text:
break
request |= json.loads(r.text)
- except:
- traceback.print_exc()
+ except Exception as ex:
+ print(ex, file=sys.stderr)
input('press enter to exit') # don’t close terminal immediately on fail