Commit c2e331ab authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases] Added exception handling to view creation

This allows to not crash the tool when a problem arise
parent 88205af7
......@@ -407,7 +407,13 @@ def index_outputs(configuration, names, uid=None, db_root=None, docker=False):
for protocol_name, set_name, db_set in sets:
if not docker:
view = database.view(protocol_name, set_name)
view = database.view(protocol_name, set_name)
except SyntaxError as error:
logger.error("Failed to load the database `%s':",
logger.error(' * Syntax error: %s', error)
view = None
if view is None:
retcode += 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment