From 295b57a1ba372fe4a8807d680ccac6f584f88e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 24 Jan 2022 14:10:18 +0100 Subject: [PATCH] setup: Improve error-handling --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bfb15e7..75503a1 100755 --- a/setup.py +++ b/setup.py @@ -107,7 +107,10 @@ class FridaPrebuiltExt(build_ext): try: with open(egg_path, "rb") as cache: egg_data = cache.read() - except IOError as e: + except: + egg_data = None + + if egg_data is None: print("prebuilt extension not found in home directory, will try downloading it") print("querying pypi for available prebuilds")