mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Add check for deserialization
This commit is contained in:
parent
725bc7c1d9
commit
534f336cad
1 changed files with 3 additions and 2 deletions
|
|
@ -179,8 +179,9 @@ class CombatAction:
|
|||
The `__serialize_dbobjs__` and `__deserialize_dbobjs__` methods form a required pair.
|
||||
|
||||
"""
|
||||
self.combathandler = dbserialize.dbunserialize(self.combathandler)
|
||||
self.combatant = dbserialize.dbunserialize(self.combatant)
|
||||
if isinstance(self.combathandler, bytes):
|
||||
self.combathandler = dbserialize.dbunserialize(self.combathandler)
|
||||
self.combatant = dbserialize.dbunserialize(self.combatant)
|
||||
|
||||
def get_help(self, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue