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.
2 parents b9642c3 + d48935f commit 09d4b29Copy full SHA for 09d4b29
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