Verified Commit 806a19b9 authored by Kevin Morris's avatar Kevin Morris
Browse files

feat(fastapi): render a 500 html response when unique SID generation fails



We've seen a bug in the past where unique SID generation fails and
still ends up raising an exception.

This commit reworks how we deal with database exceptions internally,
tries for 36 iterations to set a fresh unique SID, and raises a 500
HTTPException if we were unable to.

Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent abfd41f3
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment