From 0bfaf7a36cb433cb91215dd549c9eaa37c95c7fd Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 4 May 2022 19:53:28 -0400 Subject: [PATCH] no log: fixed improper imports --- bazarr/app/config.py | 12 ++++++------ bazarr/utilities/backup.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bazarr/app/config.py b/bazarr/app/config.py index 9f1a4aecc..fdb4a837c 100644 --- a/bazarr/app/config.py +++ b/bazarr/app/config.py @@ -496,27 +496,27 @@ def save_settings(settings_items): # Reconfigure Bazarr to reflect changes if configure_debug: - from logger import configure_logging + from .logger import configure_logging configure_logging(settings.general.getboolean('debug') or args.debug) if configure_captcha: configure_captcha_func() if update_schedule: - from scheduler import scheduler - from event_handler import event_stream + from .scheduler import scheduler + from .event_handler import event_stream scheduler.update_configurable_tasks() event_stream(type='task') if sonarr_changed: - from signalr_client import sonarr_signalr_client + from .signalr_client import sonarr_signalr_client try: sonarr_signalr_client.restart() except Exception: pass if radarr_changed: - from signalr_client import radarr_signalr_client + from .signalr_client import radarr_signalr_client try: radarr_signalr_client.restart() except Exception: @@ -530,7 +530,7 @@ def save_settings(settings_items): configure_proxy_func() if exclusion_updated: - from event_handler import event_stream + from .event_handler import event_stream event_stream(type='badges') if sonarr_exclusion_updated: event_stream(type='reset-episode-wanted') diff --git a/bazarr/utilities/backup.py b/bazarr/utilities/backup.py index 3d417835c..4d16a9e02 100644 --- a/bazarr/utilities/backup.py +++ b/bazarr/utilities/backup.py @@ -164,7 +164,7 @@ def prepare_restore(filename): if success: logging.debug('time to restart') - from server import webserver + from app.server import webserver webserver.restart()