def unpack_archive(file, extract_dir, format_, msg):
try:
shutil.unpack_archive(file, extract_dir=extract_dir, format=format_)
except (ValueError, OSError) as err:
logging.debug(traceback.format_exc())
logging.critical(err)
logging.critical(msg)
raise SystemExit
评论列表
文章目录