Skip to content

Commit

Permalink
Adjusted de-serilisarion error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
keriksson-rosenqvist committed Oct 24, 2024
1 parent c29137d commit aff5692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ __pycache__/
*.py[cod]
*$py.class

# Swap files
**/*.sw[nop]

# C extensions
*.so

Expand Down
2 changes: 1 addition & 1 deletion compiler_config/serialiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def default(self, obj):

typ = self.serializable_types.get(obj_type)
if typ is None:
raise ValueError(f"Invalid type attempted to be serialized: {obj_type}.")
raise ValueError(f"Invalid type attempted to be deserialized: {obj_type}.")
else:
typ = _get_type(obj_type)

Expand Down

0 comments on commit aff5692

Please sign in to comment.