mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Don't allow step_task if task is None. Resolves #2047
This commit is contained in:
parent
4eb631af74
commit
fc2fbe9812
1 changed files with 3 additions and 0 deletions
|
|
@ -209,6 +209,9 @@ class ScriptBase(ScriptDB, metaclass=TypeclassBase):
|
|||
Step task runner. No try..except needed due to defer wrap.
|
||||
|
||||
"""
|
||||
if not self.ndb._task:
|
||||
# if there is no task, we have no business using this method
|
||||
return
|
||||
|
||||
if not self.is_valid():
|
||||
self.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue