From 626f5ea41482be37ab5afe862d9ef05cc287ce53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 21 Nov 2019 22:23:20 -0500 Subject: [PATCH] Revert "Fix for restart after update from source on github." This reverts commit 03e98fdb --- bazarr/check_update.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/bazarr/check_update.py b/bazarr/check_update.py index 283996304..aa8f8c624 100644 --- a/bazarr/check_update.py +++ b/bazarr/check_update.py @@ -4,7 +4,6 @@ import logging import json import requests import tarfile -import sys from get_args import args from config import settings @@ -295,14 +294,10 @@ def request_json(url, **kwargs): def updated(restart=True): if settings.general.getboolean('update_restart') and restart: try: - database.close() - restart_file = open(os.path.join(args.config_dir, "bazarr.restart"), "w") - logging.info('Bazarr is being restarted...') - restart_file.write('') - restart_file.close() - sys.exit(0) - except Exception as e: - logging.info('BAZARR Restart failed, please restart Bazarr manually') + from main import restart + restart() + except: + logging.info('BAZARR Restart failed, please restart Bazarr manualy') updated(restart=False) else: database.execute("UPDATE system SET updated='1'")