Skip to content

Commit

Permalink
87 changed decode factory TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
panyab committed Nov 10, 2023
1 parent 847f9fe commit 8a7283f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EosLib/format/decode_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def decode(self, data_format: Type, data: Any):
decoder = decoders_for_format.get(type(data))
if decoder is None:
raise TypeError(f"No decoder found for format type {Type(data_format).name} for data type {type(data)}."
+ " Decoders are defined for: " + ', '.join(self._decoders.get(data_format).keys()))
+ " Decoders are defined for: " + ', '.join([str(key) for key in self._decoders.get(data_format).keys()]))
return decoder(data)


Expand Down

0 comments on commit 8a7283f

Please sign in to comment.