Skip to content

Commit fb6ba6a

Browse files
committed
Compliant error classes
1 parent b989fa3 commit fb6ba6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/isal/isal_zlib.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@ Z_SYNC_FLUSH=ISAL_SYNC_FLUSH
6464
Z_FULL_FLUSH=ISAL_FULL_FLUSH
6565
Z_FINISH=ISAL_FULL_FLUSH
6666

67-
class IsalError(Exception):
67+
class IsalError(OSError):
6868
pass
6969

70+
# Add error for compatibility
71+
error = IsalError
72+
7073

7174
if ISAL_DEF_MAX_HIST_BITS > zlib.MAX_WBITS:
7275
raise IsalError("ISAL max window size no longer compatible with zlib. "

0 commit comments

Comments
 (0)