summaryrefslogtreecommitdiffstats
path: root/extras/snap_scheduler
diff options
context:
space:
mode:
Diffstat (limited to 'extras/snap_scheduler')
-rwxr-xr-xextras/snap_scheduler/gcron.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/snap_scheduler/gcron.py b/extras/snap_scheduler/gcron.py
index e67e48cc932..a21c40f894f 100755
--- a/extras/snap_scheduler/gcron.py
+++ b/extras/snap_scheduler/gcron.py
@@ -120,6 +120,10 @@ def main():
initLogger(script_name)
global start_time
if sys.argv[1] == "--update":
+ if not os.path.exists(GCRON_TASKS):
+ return
+ if not os.path.exists(GCRON_CROND_TASK):
+ return
if os.lstat(GCRON_TASKS).st_mtime > \
os.lstat(GCRON_CROND_TASK).st_mtime:
try: