mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Move globalhandler into utils.containers, make settings format more flexible, default to base typeclass, add helper functions and some more lenient error handling
This commit is contained in:
parent
7c416280a8
commit
098af3caba
8 changed files with 134 additions and 86 deletions
|
|
@ -342,6 +342,9 @@ class DefaultScript(ScriptBase):
|
|||
|
||||
kwargs['key'] = key
|
||||
|
||||
# If no typeclass supplied, use this class
|
||||
kwargs['typeclass'] = kwargs.pop('typeclass', cls)
|
||||
|
||||
try:
|
||||
obj = create.create_script(**kwargs)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue