Skip to content

Commit

Permalink
dev(narugo): add warning check
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Dec 28, 2023
1 parent ebdee84 commit 295fec4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion skpick/archive/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os.path
import warnings
from typing import List, Dict, Tuple, Callable

_KNOWN_ARCHIVE_TYPES: Dict[str, Tuple[List[str], Callable]] = {}
Expand Down Expand Up @@ -79,4 +80,7 @@ def archive_unpack(archive_file: str, silent: bool = False, base_dir: str = '.')
except ValueError:
yield file, full_relpath
else:
yield from archive_unpack(file, silent, full_relpath)
try:
yield from archive_unpack(file, silent, full_relpath)
except Exception as err:
warnings.warn(repr(err))

0 comments on commit 295fec4

Please sign in to comment.