From dcafaa3590f253492ac8f9601e2d283e574a64b1 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 13 Dec 2014 05:27:31 -0800 Subject: [PATCH] Added try/except error catch for importing requests library when using autoProcessTV scripts. --- autoProcessTV/autoProcessTV.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autoProcessTV/autoProcessTV.py b/autoProcessTV/autoProcessTV.py index 28e893d0..400efc05 100755 --- a/autoProcessTV/autoProcessTV.py +++ b/autoProcessTV/autoProcessTV.py @@ -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: