Skip to content

Commit

Permalink
fix(isolate): don't use dataclass for serialization errors (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored May 14, 2024
1 parent 5f4d73d commit ed379aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/isolate/connections/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import importlib
import os
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, cast

from tblib import Traceback, TracebackParseError
Expand All @@ -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):
Expand Down

0 comments on commit ed379aa

Please sign in to comment.