From e2f8339d5a0543100dd5b382d9f5fe292491e212 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Mon, 10 Jul 2023 21:55:33 -0400 Subject: bin: small fixes --- bin/statusbar | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 bin/statusbar (limited to 'bin/statusbar') diff --git a/bin/statusbar b/bin/statusbar old mode 100644 new mode 100755 index 8d5dc6f..d628578 --- 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) -- cgit v1.2.3