diff --git a/oml/update.py b/oml/update.py index 769f74e..11a7f68 100644 --- a/oml/update.py +++ b/oml/update.py @@ -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: