portico: Fix exception if no realm description is set.

This was caught via Casper tests, which I regret not running.
This commit is contained in:
Tim Abbott 2017-05-11 14:23:41 -07:00
parent 223624be25
commit 6eada74bfe
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ def zulip_default_context(request):
realm_uri = realm.uri realm_uri = realm.uri
realm_name = realm.name realm_name = realm.name
realm_icon = get_realm_icon_url(realm) realm_icon = get_realm_icon_url(realm)
realm_description = convert(realm.description, message_realm=realm) or "The coolest place in the universe." realm_description_raw = realm.description or "The coolest place in the universe."
realm_description = convert(realm_description_raw, message_realm=realm)
else: else:
realm_uri = settings.SERVER_URI realm_uri = settings.SERVER_URI
realm_name = None realm_name = None