From 5a22f2c166a82d365920c490a324b9a068fd0d9e Mon Sep 17 00:00:00 2001 From: JackDandy Date: Wed, 15 Feb 2023 01:59:47 +0000 Subject: [PATCH] Fix reading legacy autoProcessTV.cfg --- CHANGES.md | 7 ++++++- autoProcessTV/autoProcessTV.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index dd751c0f..b7f6aef7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 3.27.2 (2023-02-10 19:25:00 UTC) +### 3.27.3 (2023-02-15 02:00:00 UTC) + +* Fix reading legacy autoProcessTV.cfg + + +### 3.27.2 (2023-02-10 19:25:00 UTC) * Fix revert update * Fix installations that don't have previously saved cleanup lock files diff --git a/autoProcessTV/autoProcessTV.py b/autoProcessTV/autoProcessTV.py index 06095b9f..cddddfc7 100755 --- a/autoProcessTV/autoProcessTV.py +++ b/autoProcessTV/autoProcessTV.py @@ -95,7 +95,7 @@ def process_files(dir_to_process, org_nzb_name=None, status=None): def cfg_get(cfg, option): try: return cfg.get('SickGear', option) - except configparser.NoOptionError: + except (configparser.NoOptionError, configparser.NoSectionError): return cfg.get('SickBeard', option) # Replace default values with config_file values