warn about already running update

This commit is contained in:
j 2018-07-05 13:12:40 +02:00
parent d7bcd5ed11
commit 36d0f32139

View file

@ -83,6 +83,7 @@ def update_video(url, name):
def update_videos(): def update_videos():
if os.path.exists(lock): if os.path.exists(lock):
print('another update is already running')
sys.exit(0) sys.exit(0)
with open(lock, 'w') as f: with open(lock, 'w') as f:
f.write('') f.write('')