Catch more errors on import metadata provider
This commit is contained in:
parent
c61e5d6ac0
commit
c92d65aad3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user