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
1 changed files with 1 additions and 1 deletions

View File

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