Skip to content

Commit 0e5280f

Browse files
committed
Remove unused ARJ Exception, reword error messages
Reason should be a better phrase.
1 parent 5daf6aa commit 0e5280f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

unblob/handlers/archive/arj.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ class ARJError(Exception):
1313

1414

1515
class ARJNullFile(ARJError):
16-
"""Raised for zero-sized ARJ files."""
16+
"""Zero-sized ARJ."""
1717

1818

1919
class ARJExtendedHeader(ARJError):
2020
"""Main ARJ header contains extended_header, which we don't handle."""
2121

2222

23-
class ARJFileLengthError(ARJError):
24-
"""This is a zero-sized ARJ."""
25-
26-
2723
class ARJHandler(StructHandler):
2824
NAME = "arj"
2925

@@ -150,11 +146,11 @@ def calculate_chunk(
150146
self._read_arj_main_header(file, start_offset)
151147
end_of_arj = self._read_arj_files(file)
152148
except ARJError as exc:
153-
logger.warning("Invalid ARJ file", message=exc.__doc__)
149+
logger.warning("Invalid ARJ file", reason=exc.__doc__)
154150
return
155151
except EOFError:
156152
logger.warning(
157-
"Invalid ARJ file", message="File ends before ARJ file resolves."
153+
"Invalid ARJ file", reason="File ends before ARJ file resolves."
158154
)
159155
return
160156

0 commit comments

Comments
 (0)