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
No known key found for this signature in database
GPG Key ID: 5C1D2774D4689768
1 changed files with 1 additions and 1 deletions

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)