FIX: attempt to use local requests before using requests included in order to avoid supported version errors (when using CT)

This commit is contained in:
evilhero 2018-06-14 14:04:11 -04:00
parent 2623bbcbaf
commit 10e341b644
1 changed files with 4 additions and 1 deletions

View File

@ -51,10 +51,13 @@ from issuestring import IssueString
from settings import ComicTaggerSettings
try:
import requests
except:
try:
lib_path = os.path.join(ComicTaggerSettings.baseDir(), '..')
sys.path.append(lib_path)
import requests
except ImportError:
except ImportError:
print "Unable to use requests module. This is a CRITICAL error and ComicTagger cannot proceed. Exiting."
class CVTypeID: