Add warning for missing archive in extract_item()
This commit is contained in:
parent
27953bde5a
commit
e305b3e60f
1 changed files with 3 additions and 0 deletions
|
|
@ -190,6 +190,9 @@ def extract_item(item, filter='', silent=False):
|
|||
print_standard('Extracting "{item}"...'.format(item=item))
|
||||
try:
|
||||
run_program(cmd)
|
||||
except FileNotFoundError:
|
||||
if not silent:
|
||||
print_warning('WARNING: Archive not found')
|
||||
except subprocess.CalledProcessError:
|
||||
if not silent:
|
||||
print_warning('WARNING: Errors encountered while exctracting data')
|
||||
|
|
|
|||
Loading…
Reference in a new issue