1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-04 23:40:25 +08:00

better error handling

This commit is contained in:
Escartem
2025-01-07 14:42:02 +01:00
parent 982bf81c27
commit f28afbb87c
5 changed files with 27 additions and 16 deletions

View File

@@ -11,8 +11,7 @@ class FileReader:
def __init__(self, file, endianness:str, name:str=None):
self.stream = file
self.endianness = endianness
if name:
self.name = name
self.name = name
def _read(self, mode:str, bufferLength:int, endianness:str=None, pos:int=None) -> bytes:
# endianness override