Catch more errors on import metadata provider

This commit is contained in:
Ozzieisaacs 2022-04-17 19:05:56 +02:00
parent c61e5d6ac0
commit c92d65aad3
1 changed files with 1 additions and 1 deletions

View File

@ -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