warn about already running update
This commit is contained in:
parent
d7bcd5ed11
commit
36d0f32139
1 changed files with 1 additions and 0 deletions
|
@ -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('')
|
||||||
|
|
Loading…
Reference in a new issue