diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-07-10 21:55:33 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-07-19 11:52:52 -0400 |
| commit | e2f8339d5a0543100dd5b382d9f5fe292491e212 (patch) | |
| tree | 27d4f8e39cacb8483b13bff4bad9884d76dc9abd /bin/statusbar | |
| parent | 3666746ea6243478e07987904433d8493c039ef4 (diff) | |
bin: small fixes
Diffstat (limited to 'bin/statusbar')
| -rwxr-xr-x[-rw-r--r--] | bin/statusbar | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/statusbar b/bin/statusbar index 8d5dc6f..d628578 100644..100755 --- a/bin/statusbar +++ b/bin/statusbar @@ -2,6 +2,7 @@ import subprocess import time +import traceback import re @@ -70,5 +71,5 @@ while True: subprocess.run(['somebar', '-c', 'status', status]) prev = status except Exception as e: - print(e) + print(''.join(traceback.format_exception(None, e, e.__traceback__))) time.sleep(1 - time.time() % 1) |
