Handle exception as ImportError

This commit is contained in:
Daniel Ingram committed 2018-12-09 15:49:34 -05:00
1 parent 0eb65aa902
commit 16d2937723
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ import json
import codecs
try:
from urllib.request import Request,urlopen
except:
except ImportError:
from urllib2 import Request,urlopen
# External tools (can be overridden using environment)