mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 21:17:17 +02:00
Broaded Container exception handler. Resolve #2334.
This commit is contained in:
parent
800a157ef1
commit
495a474505
1 changed files with 3 additions and 4 deletions
|
|
@ -198,10 +198,9 @@ class GlobalScriptContainer(Container):
|
|||
try:
|
||||
typeclass = data.get("typeclass", settings.BASE_SCRIPT_TYPECLASS)
|
||||
self.typeclass_storage[key] = class_from_module(typeclass)
|
||||
except ImportError as err:
|
||||
logger.log_err(
|
||||
f"GlobalScriptContainer could not start global script {key}: {err}"
|
||||
)
|
||||
except Exception:
|
||||
logger.log_trace(
|
||||
f"GlobalScriptContainer could not start import global script {key}.")
|
||||
|
||||
def get(self, key, default=None):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue