summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorgoatchurch <devnull@localhost>2009-07-27 13:43:43 +0100
committergoatchurch <devnull@localhost>2009-07-27 13:43:43 +0100
commit7158a79a347d99fb1f8e94e034f2d79e08ad9172 (patch)
treee3467cf75e59c43ad31e5c202f3aca2fe708d7e2 /utils.py
parent68060d6118b47c54c34004b97ef13d5200cdd401 (diff)
downloadtroggle-7158a79a347d99fb1f8e94e034f2d79e08ad9172.tar.gz
troggle-7158a79a347d99fb1f8e94e034f2d79e08ad9172.tar.bz2
troggle-7158a79a347d99fb1f8e94e034f2d79e08ad9172.zip
[svn] full checkin. animations disabled, sorry
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 6f62b0c..1970c7b 100644
--- a/utils.py
+++ b/utils.py
@@ -99,7 +99,7 @@ def href_to_wikilinks(matchobj):
object actually exists.
"""
res=CaveDescription.objects.filter(long_name__icontains=matchobj.groupdict()['text'])
- if res[0]:
+ if res and res[0]:
return r'[[cavedescription:'+res[0].short_name+'|'+res[0].long_name+']]'
else:
return matchobj.group()