1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

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

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