File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
packages/service-library/src/servicelib Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ class ArchiveError(Exception):
3535 """
3636
3737
38- class UnsupportedArchiveFormatError (Exception ):
39- pass
40-
41-
4238def _human_readable_size (size , decimal_places = 3 ):
4339 human_readable_file_size = float (size )
4440 unit = "B"
@@ -264,10 +260,6 @@ async def unarchive_dir(
264260 f"Failed unarchiving { archive_to_extract } -> { destination_folder } due to { type (err )} ."
265261 f"Details: { err } "
266262 )
267- # maybe write unsupported error format here instead of all this to be able to still raise in case of error
268- if isinstance (err , NotImplementedError ):
269- raise UnsupportedArchiveFormatError (msg ) from err
270-
271263 raise ArchiveError (msg ) from err
272264
273265 # NOTE: extracted_paths includes all tree leafs, which might include files and empty folders
You can’t perform that action at this time.
0 commit comments