1
0
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:
echel0n 2014-12-13 05:27:31 -08:00
parent 5bc9f7e68a
commit dcafaa3590

View File

@ -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: