Timewarrior use Logger instead of print

This commit is contained in:
Jindrich Pilar 2016-10-09 10:53:01 +02:00
parent 4692e0f914
commit 6016c52a87

View File

@ -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):