fix use of SetFELog with log_level="error" => level="danger"

This commit is contained in:
2024-01-21 18:17:45 +11:00
parent a3350b9316
commit 4db3d27cbc
3 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ def AddRefimgToPerson( filename, person ):
except Exception as e:
# can fail "silently" here, if the face_locn worked, great, its only
# a tmp file in /tmp - if not, the next if will send a msg to the front-end
SetFELog( message=f"Failed to delete tmp file for refimg addition: {e}", log_level="danger", persistent=True, cant_close=True )
SetFELog( message=f"Failed to delete tmp file for refimg addition: {e}", level="danger", persistent=True, cant_close=True )
if not face_locn:
SetFELog( f"<b>Failed to find face in Refimg:</b>", "danger" )