Added example of how to handle event errors gracefully without them taking down the server with with unhandled exceptions (this should be handled somewhere above exception too, but it's hard to tell when to do it since twisted is raising them). /Starkiel

This commit is contained in:
Griatch 2009-04-30 08:23:54 +00:00
parent b53c228257
commit 8799a0fd55
5 changed files with 20 additions and 7 deletions

View file

@ -84,8 +84,7 @@ class ObjectManager(models.Manager):
"""
o_query = self.filter(script_parent__exact=script_parent)
return o_query.exclude(type__in=[defines_global.OTYPE_GARBAGE,
defines_global.OTYPE_GOING])
defines_global.OTYPE_GOING])
def list_search_object_namestr(self, searchlist, ostring, dbref_only=False,
limit_types=False, match_type="fuzzy"):