From aa8616ba1746d29a7c9f58addef934921633bea1 Mon Sep 17 00:00:00 2001 From: Thor Whalen <1906276+thorwhalen@users.noreply.github.com> Date: Thu, 30 Jan 2025 10:08:48 +0100 Subject: [PATCH] fix: improve error handling by converting exception to string in validate_key_and_raise_key_error_on_exception --- dol/filesys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dol/filesys.py b/dol/filesys.py index f2f7fe19..1080a8e6 100644 --- a/dol/filesys.py +++ b/dol/filesys.py @@ -275,7 +275,7 @@ def wrapped_method(self, k, *args, **kwargs): try: return func(self, k, *args, **kwargs) except Exception as e: - raise KeyError(e) + raise KeyError(str(e)) return wrapped_method