Skip to content

Commit e6d118d

Browse files
author
Andrei Neagu
committed
remove unused
1 parent 65b5291 commit e6d118d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/service-library/src/servicelib/archiving_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ class ArchiveError(Exception):
3535
"""
3636

3737

38-
class UnsupportedArchiveFormatError(Exception):
39-
pass
40-
41-
4238
def _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

0 commit comments

Comments
 (0)