From 4692e0f9143dc12835a22730a8dc3ebe1342af1f Mon Sep 17 00:00:00 2001 From: Jindrich Pilar Date: Sun, 9 Oct 2016 10:09:54 +0200 Subject: [PATCH] Timewarrior re-raise error --- i3pystatus/timewarrior.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3pystatus/timewarrior.py b/i3pystatus/timewarrior.py index ca387a6..a80a46c 100644 --- a/i3pystatus/timewarrior.py +++ b/i3pystatus/timewarrior.py @@ -41,8 +41,9 @@ class TImewarrior(IntervalModule): tracks = loads(tracks_json.decode("utf-8")) self.track = tracks[-1] - except ValueError: + except ValueError as error: print('Decoding JSON has failed') + raise error def stop_or_continue(self): self.loadTrack()