diff options
author | goatchurch <devnull@localhost> | 2009-07-27 13:43:43 +0100 |
---|---|---|
committer | goatchurch <devnull@localhost> | 2009-07-27 13:43:43 +0100 |
commit | b135ab64e7873169e8a3c973f3ea9d0fbb18e319 (patch) | |
tree | 67f694c380bf3db61f9f5e13f182cc7d5d3b3b23 /utils.py | |
parent | 694fe4b4d8325a62489ac5142942fd61598a7612 (diff) | |
download | troggle-b135ab64e7873169e8a3c973f3ea9d0fbb18e319.tar.gz troggle-b135ab64e7873169e8a3c973f3ea9d0fbb18e319.tar.bz2 troggle-b135ab64e7873169e8a3c973f3ea9d0fbb18e319.zip |
[svn] full checkin. animations disabled, sorry
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()
|