From af9006f1b5228dd18a16e02800d4a950d6864139 Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 11 Mar 2020 20:11:20 +0100 Subject: [PATCH 1/2] Catch indexer specific exceptions in show refresh --- medusa/show_queue.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/medusa/show_queue.py b/medusa/show_queue.py index c79bd7efde..bbd7428854 100644 --- a/medusa/show_queue.py +++ b/medusa/show_queue.py @@ -696,6 +696,12 @@ def run(self): # Load XEM data to DB for show scene_numbering.xem_refresh(self.show) + except IndexerException as error: + log.warning( + '{id}: Unable to contact {indexer}. Aborting: {error_msg}', + {'id': self.show.series_id, 'indexer': indexerApi(self.show.indexer).name, + 'error_msg': error} + ) except Exception as error: log.error( '{id}: Error while refreshing show {show}. Error: {error_msg}', From d8c2ce22367577a80de96d5ad3a82bbb8080f61d Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 11 Mar 2020 20:27:53 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bce6785329..c534df2c4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ #### Improvements #### Fixes +- Fixed indexer specific exceptions raising errors in show refresh ([#7837](https://github.com/pymedusa/Medusa/pull/7837)) - Replaced deprecated error.message syntax ([#7819](https://github.com/pymedusa/Medusa/pull/7819)) -----