Skip to content

Commit

Permalink
Changed dict error reporting (take 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Robert Tester committed Apr 30, 2018
1 parent 46fada0 commit 075ff46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion malcolm/core/serializable.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def lookup_subclass(cls, d):
try:
typeid = d["typeid"]
except KeyError:
raise FieldError("typeid field not present in dictionary ( d.keys() = %s )" % list(d.keys()))
raise FieldError("typeid field not present in dictionary ( d.keys() = %s )" % list(d))

subclass = cls._subcls_lookup.get(typeid, None)
if not subclass:
Expand Down

0 comments on commit 075ff46

Please sign in to comment.