core (memory/sqla): be sure to have a dict when serialising History.extra:
`extra` can be None, this patch avoid this value when serialising it by using an empty dict.
This commit is contained in:
parent
9a09f33d72
commit
66842072e3
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ class History(Base):
|
|||
return f"History<{self.source_jid.full()}->{self.dest_jid.full()} [{dt}]>"
|
||||
|
||||
def serialise(self):
|
||||
extra = self.extra
|
||||
extra = self.extra or {}
|
||||
if self.origin_id is not None:
|
||||
extra["origin_id"] = self.origin_id
|
||||
if self.stanza_id is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue