1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-19 20:38:06 +01:00

Fix for case when there is no archiver found on the system

This commit is contained in:
2016-12-28 19:26:57 +01:00
parent 6667f5c5be
commit 1878fd48a1

View File

@@ -92,6 +92,10 @@ def extract_archive(arch_name, show_gui_message, message_text):
try: try:
subprocess.check_call(cmd + [arch_name]) subprocess.check_call(cmd + [arch_name])
except OSError:
sys.stderr.write("Error executing `%s'.\n" % cmd)
msg.close()
return False
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
sys.stderr.write("Error during extracting archive `%s'.\n" % arch_name) sys.stderr.write("Error during extracting archive `%s'.\n" % arch_name)
msg.close() msg.close()