From 783040de4bbc375c8e9a7c325413699c03acb836 Mon Sep 17 00:00:00 2001 From: Laurence Rawlings Date: Mon, 25 Jan 2021 00:04:01 +0000 Subject: [PATCH] Catch all exception for unknown errors --- savify/savify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/savify/savify.py b/savify/savify.py index e1606a7..24d8d73 100644 --- a/savify/savify.py +++ b/savify/savify.py @@ -194,7 +194,7 @@ def _download(self, track: Track) -> dict: try: import shutil shutil.move(output_temp, output) - except RuntimeError: + except Exception: status['returncode'] = 1 status['error'] = "Unknown." return status @@ -240,7 +240,7 @@ def _download(self, track: Track) -> dict: import shutil shutil.move(output_temp, output) added_artwork = True - except RuntimeError: + except Exception: status['returncode'] = 1 status['error'] = "Unknown." return status