Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

catch devmo url errors in case of l10n mistakes #380

Merged
merged 1 commit into from

2 participants

@groovecoder
Owner

No description provided.

@lmorchard lmorchard merged commit b52cee7 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 10, 2012
  1. @groovecoder
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 apps/devmo/helpers.py
View
5 apps/devmo/helpers.py
@@ -80,7 +80,10 @@ def devmo_url(context, path):
"""
if not settings.DEKIWIKI_ENDPOINT:
locale = context['request'].locale
- url = cache.get('devmo_url:%s_%s' % (locale, path))
+ try:
+ url = cache.get('devmo_url:%s_%s' % (locale, path))
+ except:
+ return path
if not url:
url = reverse('wiki.document',
locale=settings.WIKI_DEFAULT_LANGUAGE,
Something went wrong with that request. Please try again.