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
|
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
|
||||||
|
|
||||||
|
|
Reference in New Issue