From ed379aa562ada2d6587803e70d78194e3709f45e Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 14 May 2024 20:13:57 +0300 Subject: [PATCH] fix(isolate): don't use dataclass for serialization errors (#131) --- src/isolate/connections/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/isolate/connections/common.py b/src/isolate/connections/common.py index 954ded2..4fbfef0 100644 --- a/src/isolate/connections/common.py +++ b/src/isolate/connections/common.py @@ -2,7 +2,6 @@ import importlib import os -from dataclasses import dataclass from typing import TYPE_CHECKING, Any, cast from tblib import Traceback, TracebackParseError @@ -21,11 +20,10 @@ def dumps(self, obj: Any) -> bytes: ... AGENT_SIGNATURE = "IS_ISOLATE_AGENT" -@dataclass class BaseSerializationError(IsolateException): """An error that happened during the serialization process.""" - message: str + pass class SerializationError(BaseSerializationError):