From 36d0f3213997bf0ae6604a7ad1fb46581d4da595 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 5 Jul 2018 13:12:40 +0200 Subject: [PATCH] warn about already running update --- cdoseaplay/update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cdoseaplay/update.py b/cdoseaplay/update.py index d2c5f04..9469783 100755 --- a/cdoseaplay/update.py +++ b/cdoseaplay/update.py @@ -83,6 +83,7 @@ def update_video(url, name): def update_videos(): if os.path.exists(lock): + print('another update is already running') sys.exit(0) with open(lock, 'w') as f: f.write('')