Skip to content
Snippets Groups Projects
Commit 64cf08ed authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Simplified code.

parent 9029b530
No related branches found
No related tags found
1 merge request!4MAINT: be more specific with output
......@@ -607,11 +607,10 @@ carefully and if the changes are ok, click on the following link:
logger.debug("No new entities to be inserted.")
else:
try:
if len(missing_identifiables) > 0:
logger.info(
"Inserting {} Records...".format(
len(missing_identifiables)))
guard.safe_insert(missing_identifiables, unique=False)
logger.info(
"Inserting {} Records...".format(
len(missing_identifiables)))
guard.safe_insert(missing_identifiables, unique=False)
except Exception as e:
DataModelProblems.evaluate_exception(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment