Skip to content

Commit

Permalink
Merge pull request #5 from oqc-community/ker/improved_error_message
Browse files Browse the repository at this point in the history
Adjusted de-serilisation error message.
  • Loading branch information
keriksson-rosenqvist authored Oct 24, 2024
2 parents c29137d + aff5692 commit 837ef18
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 837ef18

Please sign in to comment.