Skip to content
Snippets Groups Projects
Commit e550ccb0 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

wrap database save call in try/catch block, to mitigate metadata sync failure

parent e688034b
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,12 @@ foreach my $id (keys %{$configuration->{federations}}) {
$entity->contacts(@contacts);
}
$entity->federations($id);
$entity->save();
eval {
$entity->save();
};
if ($EVAL_ERROR) {
warn "error while saving entity $entry->{entityid}: $EVAL_ERROR";
}
}
}
......
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