From 04148ed1c66028919d04568caefa7dc9c5c8fc48 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 2 Aug 2016 09:55:12 +0200 Subject: [PATCH] Appveyor: Also handle IOError This is on Python 2.7 where they are separate --- scripts/dev/ci/appveyor_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dev/ci/appveyor_install.py b/scripts/dev/ci/appveyor_install.py index d6ce4dd48..f27f4914b 100644 --- a/scripts/dev/ci/appveyor_install.py +++ b/scripts/dev/ci/appveyor_install.py @@ -53,7 +53,7 @@ pyqt_url = ('http://www.qutebrowser.org/pyqt/' try: urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe') -except OSError: +except (OSError, IOError): print("Downloading PyQt failed, trying again in 10 seconds...") time.sleep(10) urllib.urlretrieve(pyqt_url, r'C:\install-PyQt5.exe')