core: also handle TypeError for invalid app URL formatting

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-02-17 18:23:11 +01:00
parent 61aaa90226
commit 80f218a6bf

View file

@ -58,7 +58,7 @@ class ApplicationSerializer(ModelSerializer):
user = user._wrapped
try:
return url % user.__dict__
except ValueError as exc:
except (ValueError, TypeError) as exc:
LOGGER.warning("Failed to format launch url", exc=exc)
return url