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 | 7158a79a347d99fb1f8e94e034f2d79e08ad9172 (patch) | |
tree | e3467cf75e59c43ad31e5c202f3aca2fe708d7e2 /utils.py | |
parent | 68060d6118b47c54c34004b97ef13d5200cdd401 (diff) | |
download | troggle-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.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()
|