From 6016c52a8711a59a2108ea69b4abd93da1f56943 Mon Sep 17 00:00:00 2001 From: Jindrich Pilar Date: Sun, 9 Oct 2016 10:53:01 +0200 Subject: [PATCH] Timewarrior use Logger instead of print --- i3pystatus/timewarrior.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3pystatus/timewarrior.py b/i3pystatus/timewarrior.py index a80a46c..979cb17 100644 --- a/i3pystatus/timewarrior.py +++ b/i3pystatus/timewarrior.py @@ -6,7 +6,7 @@ from datetime import datetime, timezone import subprocess -class TImewarrior(IntervalModule): +class Timewarrior(IntervalModule): """ Show current Timewarrior tracking Requires `json` `dateutil` @@ -42,7 +42,7 @@ class TImewarrior(IntervalModule): self.track = tracks[-1] except ValueError as error: - print('Decoding JSON has failed') + self.logger.exception('Decoding JSON has failed') raise error def stop_or_continue(self):