From 5b43af7a4c33f6f0697c47436f3b15d7d478e622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 18 Nov 2017 08:34:06 -0500 Subject: [PATCH] Unexistent variable deletion error --- get_subtitle.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/get_subtitle.py b/get_subtitle.py index 794b8093b..605a7c60a 100644 --- a/get_subtitle.py +++ b/get_subtitle.py @@ -28,10 +28,13 @@ def download_subtitle(path, language, hi, providers): del video del best_subtitles - del result - del downloaded_provider - del downloaded_language - del message + try: + del result + del downloaded_provider + del downloaded_language + del message + except: + pass def series_download_subtitles(no): conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) @@ -77,7 +80,10 @@ def wanted_download_subtitles(path): del episodes_details del enabled_providers del providers_list - del message + try: + del message + except: + pass def wanted_search_missing_subtitles(): db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))