core: handle error when formatting launch URL fails closes #2304
This commit is contained in:
parent
d4e4f93cb4
commit
df362dd9ea
|
@ -56,7 +56,11 @@ class ApplicationSerializer(ModelSerializer):
|
||||||
if isinstance(user, SimpleLazyObject):
|
if isinstance(user, SimpleLazyObject):
|
||||||
user._setup()
|
user._setup()
|
||||||
user = user._wrapped
|
user = user._wrapped
|
||||||
return url % user.__dict__
|
try:
|
||||||
|
return url % user.__dict__
|
||||||
|
except ValueError as exc:
|
||||||
|
LOGGER.warning("Failed to format launch url", exc=exc)
|
||||||
|
return url
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
|
|
Reference in New Issue