core: also handle TypeError for invalid app URL formatting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
61aaa90226
commit
80f218a6bf
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue