file must exist

This commit is contained in:
j 2016-01-13 10:49:26 +05:30
parent d72158d78f
commit 44cb61da96

View file

@ -143,7 +143,8 @@ def install(stop=True):
shutil.rmtree(module_old)
shutil.rmtree(new)
else:
os.unlink(module_tar)
if os.path.exists(module_tar):
os.unlink(module_tar)
return False
shutil.copy(os.path.join(settings.updates_path, 'release.json'), os.path.join(settings.config_path, 'release.json'))
if stop: