mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
Merge branch 'development' into python3
This commit is contained in:
commit
4016ed1d74
1 changed files with 5 additions and 4 deletions
|
@ -295,10 +295,11 @@ def request_json(url, **kwargs):
|
|||
def updated(restart=True):
|
||||
if settings.general.getboolean('update_restart') and restart:
|
||||
try:
|
||||
from main import restart
|
||||
restart()
|
||||
except:
|
||||
logging.info('BAZARR Restart failed, please restart Bazarr manualy')
|
||||
requests.get('http://127.0.0.1:' + settings.general.port + settings.general.base_url + 'restart')
|
||||
except requests.ConnectionError:
|
||||
pass
|
||||
except (requests.ConnectTimeout, requests.HTTPError, requests.ReadTimeout, requests.Timeout):
|
||||
logging.info('BAZARR Restart failed, please restart Bazarr manually')
|
||||
updated(restart=False)
|
||||
else:
|
||||
database.execute("UPDATE system SET updated='1'")
|
||||
|
|
Loading…
Reference in a new issue