mirror of
https://github.com/evilhero/mylar
synced 2025-02-02 12:31:44 +00:00
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:
parent
2623bbcbaf
commit
10e341b644
1 changed files with 4 additions and 1 deletions
|
@ -51,10 +51,13 @@ from issuestring import IssueString
|
||||||
from settings import ComicTaggerSettings
|
from settings import ComicTaggerSettings
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
import requests
|
||||||
|
except:
|
||||||
|
try:
|
||||||
lib_path = os.path.join(ComicTaggerSettings.baseDir(), '..')
|
lib_path = os.path.join(ComicTaggerSettings.baseDir(), '..')
|
||||||
sys.path.append(lib_path)
|
sys.path.append(lib_path)
|
||||||
import requests
|
import requests
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Unable to use requests module. This is a CRITICAL error and ComicTagger cannot proceed. Exiting."
|
print "Unable to use requests module. This is a CRITICAL error and ComicTagger cannot proceed. Exiting."
|
||||||
|
|
||||||
class CVTypeID:
|
class CVTypeID:
|
||||||
|
|
Loading…
Reference in a new issue