Move dict into attributes.get as a default

This commit is contained in:
Griatch 2018-01-21 09:52:24 +01:00
parent 8abc4b1841
commit e37fdc110f

View file

@ -134,7 +134,7 @@ class Session(object):
""" """
if self.account: if self.account:
self.protocol_flags.update(self.account.attributes.get("_saved_protocol_flags") or {}) self.protocol_flags.update(self.account.attributes.get("_saved_protocol_flags", {}))
# access hooks # access hooks