mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 15:07:16 +02:00
Merge pull request #1344 from vlegoff/event_fix
[Event system] Check that the script has valid non-attributes before …
This commit is contained in:
commit
ef7712d38b
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ def register_events(path_or_typeclass):
|
|||
try:
|
||||
storage = ScriptDB.objects.get(db_key="event_handler")
|
||||
assert storage.is_active
|
||||
assert storage.ndb.events is not None
|
||||
except (ScriptDB.DoesNotExist, AssertionError):
|
||||
storage = EVENTS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue