Add hard requirement for requests (for everything except mac-deprecated)

This commit is contained in:
blitzmann
2017-05-04 21:48:30 -04:00
parent c2880c0175
commit 283cb1e50c

View File

@@ -355,6 +355,12 @@ if __name__ == "__main__":
if int(logVersion[0]) == 0 and int(logVersion[1]) < 10:
raise PreCheckException("Logbook version >= 0.10.0 is required.")
if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3, 0)):
try:
import requests
except ImportError:
raise PreCheckException("Cannot import requests. You can download requests from https://pypi.python.org/pypi/requests.")
import eos.db
# noinspection PyUnresolvedReferences
import service.prefetch # noqa: F401