Skip to content

Commit

Permalink
no deps
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 8, 2025
1 parent e04352a commit 8a7dfea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zbase/z85b.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import struct
from typing import Union

from hivemind_bus_client.exceptions import Z85DecodeError


class Z85B:
# Z85CHARS is the base 85 symbol table
Expand Down Expand Up @@ -96,7 +94,7 @@ def decode(cls, encoded_data: Union[str, bytes], encoding: str = "utf-8") -> byt
except IndexError:
break # End of input reached
except KeyError as e:
raise Z85DecodeError(f"Invalid byte code: {e.args[0]!r}")
raise ValueError(f"Invalid byte code: {e.args[0]!r}")
values.append(value)

# Unpack the values back into raw bytes
Expand Down

0 comments on commit 8a7dfea

Please sign in to comment.