warn about already running update

This commit is contained in:
j 2018-07-05 13:12:40 +02:00
parent d7bcd5ed11
commit 36d0f32139
1 changed files with 1 additions and 0 deletions

View File

@ -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('')