Appveyor: Also handle IOError

This is on Python 2.7 where they are separate
This commit is contained in:
Florian Bruhin 2016-08-02 09:55:12 +02:00
parent e99d75c18d
commit 04148ed1c6

View File

@ -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')