Private
Public Access
1
0
This commit is contained in:
2023-12-14 06:18:47 +01:00
parent 7d8d570347
commit 85fd49a1be
2 changed files with 1 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ def usermessages(rower):
try:
msgs = UserMessage.objects.filter(receiver=rower, isread=False)
return msgs.count()
except UserMessage.DoesNotExist:
except (UserMessage.DoesNotExist, ValueError):
pass
return 0

Binary file not shown.