From 1878fd48a149786322353bc6e2b64e233ba4c7f6 Mon Sep 17 00:00:00 2001 From: gryf Date: Wed, 28 Dec 2016 19:26:57 +0100 Subject: [PATCH] Fix for case when there is no archiver found on the system --- fs_uae_wrapper/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs_uae_wrapper/utils.py b/fs_uae_wrapper/utils.py index 746a47c..7824f78 100644 --- a/fs_uae_wrapper/utils.py +++ b/fs_uae_wrapper/utils.py @@ -92,6 +92,10 @@ def extract_archive(arch_name, show_gui_message, message_text): try: subprocess.check_call(cmd + [arch_name]) + except OSError: + sys.stderr.write("Error executing `%s'.\n" % cmd) + msg.close() + return False except subprocess.CalledProcessError: sys.stderr.write("Error during extracting archive `%s'.\n" % arch_name) msg.close()