diff --git a/common_py/src/videoag_common/database/database.py b/common_py/src/videoag_common/database/database.py index a208f2e8495a3e180ab7c56f7bb0a4e1517e8828..f8b26785d6e4241d49741502f185ae80be65cf1b 100644 --- a/common_py/src/videoag_common/database/database.py +++ b/common_py/src/videoag_common/database/database.py @@ -224,7 +224,7 @@ class Database: # Sleep a random time for up to 500ms to increase chance that next attempt succeeds (The randomness makes # it more likely that we reattempt at a different time than the one with which we are in conflict right now) time.sleep(random.random() / 2) - print("Warning: Reattempting transaction after commit conflict") + print("Warning: Reattempting transaction after commit conflict", e) continue raise AssertionError("This should be unreachable code")