diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/pomodoro.py | 3 |
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() |
