diff --git a/.gitignore b/.gitignore index 82f9275..aed338c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ __pycache__/ *.py[cod] *$py.class +# Swap files +**/*.sw[nop] + # C extensions *.so diff --git a/compiler_config/serialiser.py b/compiler_config/serialiser.py index 87fbc1d..e31ed03 100644 --- a/compiler_config/serialiser.py +++ b/compiler_config/serialiser.py @@ -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)