mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge branch 'master' into develop
This commit is contained in:
commit
3deb8f48c1
1 changed files with 3 additions and 3 deletions
|
|
@ -351,11 +351,11 @@ class TaskHandler(object):
|
|||
# an unsaveable callback should immediately abort
|
||||
try:
|
||||
dbserialize(callback)
|
||||
except (TypeError, AttributeError, PickleError):
|
||||
except (TypeError, AttributeError, PickleError) as err:
|
||||
raise ValueError(
|
||||
"the specified callback {} cannot be pickled. "
|
||||
"the specified callback {callback} cannot be pickled. "
|
||||
"It must be a top-level function in a module or an "
|
||||
"instance method.".format(callback)
|
||||
"instance method ({err}).".format(callback=callback, err=err)
|
||||
)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue