Add hard requirement for requests (for everything except mac-deprecated)
This commit is contained in:
6
pyfa.py
6
pyfa.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user