Merge pull request #1344 from vlegoff/event_fix

[Event system] Check that the script has valid non-attributes before …
This commit is contained in:
Griatch 2017-06-14 21:37:12 +02:00 committed by GitHub
commit ef7712d38b

View file

@ -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