Raise TypeError instead of NotImplementedError if not list type

This commit is contained in:
Joseph Hunkeler
2019-01-14 10:34:03 -05:00
parent 343430c537
commit 8937e39afd

View File

@@ -71,7 +71,7 @@ def merge_family(left, right):
for kl, vl in left.items():
for kr, vr in right.items():
if not isinstance(vl, list):
raise NotImplementedError(type(vl))
raise TypeError(type(vl))
result[kl] = vl + vr
left.update(result)