mirror of
https://github.com/moparisthebest/SickRage
synced 2024-08-13 16:53:54 -04:00
Added try/except error catch for importing requests library when using autoProcessTV scripts.
This commit is contained in:
parent
5bc9f7e68a
commit
dcafaa3590
@ -22,7 +22,12 @@ from __future__ import with_statement
|
||||
|
||||
import os.path
|
||||
import sys
|
||||
import requests
|
||||
|
||||
try:
|
||||
import requests
|
||||
except ImportError:
|
||||
print ("You need to install python requests library")
|
||||
sys.exit(1)
|
||||
|
||||
# Try importing Python 2 modules using new names
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user