From c92d65aad3ea4f2247e34c2d5c7946852959cbd8 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 17 Apr 2022 19:05:56 +0200 Subject: [PATCH] Catch more errors on import metadata provider --- cps/search_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/search_metadata.py b/cps/search_metadata.py index 4bbca58f..0070e78f 100644 --- a/cps/search_metadata.py +++ b/cps/search_metadata.py @@ -57,7 +57,7 @@ for f in modules: try: importlib.import_module("cps.metadata_provider." + a) new_list.append(a) - except ImportError as e: + except (ImportError, IndentationError, SyntaxError) as e: log.error("Import error for metadata source: {} - {}".format(a, e)) pass