mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
Catch ObjectDoesNotExist exception when calling delete() in DefaultScript.stop(). Fixes 919
This commit is contained in:
parent
ed1b61a129
commit
88674307ec
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ ability to run timers.
|
|||
|
||||
from twisted.internet.defer import Deferred, maybeDeferred
|
||||
from twisted.internet.task import LoopingCall
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django.utils.translation import ugettext as _
|
||||
from evennia.typeclasses.models import TypeclassBase
|
||||
from evennia.scripts.models import ScriptDB
|
||||
|
|
@ -353,6 +354,8 @@ class DefaultScript(ScriptBase):
|
|||
except AssertionError:
|
||||
logger.log_trace()
|
||||
return 0
|
||||
except ObjectDoesNotExist:
|
||||
pass
|
||||
return 1
|
||||
|
||||
def pause(self, manual_pause=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue