summaryrefslogtreecommitdiffstats
path: root/examples/pomodoro.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pomodoro.py')
-rw-r--r--examples/pomodoro.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/pomodoro.py b/examples/pomodoro.py
index 7af996b..2094448 100644
--- a/examples/pomodoro.py
+++ b/examples/pomodoro.py
@@ -97,6 +97,9 @@ class Py3status:
* pause
* stop (default)
"""
+ if not os.path.isfile(LOG_FILE):
+ return 'stop'
+
with open(LOG_FILE, 'r') as f:
status = f.read()