From aff569248d89138496becf2d2db64f82c84f2186 Mon Sep 17 00:00:00 2001 From: Kajsa Eriksson Rosenqvist Date: Thu, 24 Oct 2024 09:57:58 +0100 Subject: [PATCH] Adjusted de-serilisarion error message. --- .gitignore | 3 +++ compiler_config/serialiser.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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)