We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9642c3 commit d48935fCopy full SHA for d48935f
messagebird/base.py
@@ -6,9 +6,10 @@
6
7
class Base(object):
8
def load(self, data):
9
- for name, value in list(data.items()):
10
- if hasattr(self, name) and not callable(getattr(self, name)):
11
- setattr(self, name, value)
+ if data is not None:
+ for name, value in list(data.items()):
+ if hasattr(self, name) and not callable(getattr(self, name)):
12
+ setattr(self, name, value)
13
14
return self
15
0 commit comments