We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b6ddcc + 5c9aba9 commit 91da83fCopy full SHA for 91da83f
1 file changed
pyflow/adder.py
@@ -55,15 +55,17 @@ def replace(self, other):
55
self.add(other)
56
57
def _create(self, other):
58
- assert other is not None
+
59
+ result = []
60
+ if other is None:
61
+ return result
62
63
if isinstance(other, dict):
64
other = [it for it in other.items()]
65
66
if not isinstance(other, list):
67
other = [other]
68
- result = []
69
for o in other:
70
if isinstance(o, tuple):
71
if len(o) == 2 and isinstance(o[1], dict):
0 commit comments