Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not silence error when setting a place
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Mar 9, 2023
commit fad0c488d3ffc6ae0ae95d41fc63829554a0fc09
2 changes: 2 additions & 0 deletions lib/DB/Place/PlaceMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public function setPlaceForFile(string $place, int $fileId): void {
} catch (\Exception $ex) {
if ($ex->getPrevious() instanceof UniqueConstraintViolationException) {
$this->updatePlaceForFile($place, $fileId);
} else {
throw $ex;
}
}
}
Expand Down