import six
from six.moves import urllib
-try:
- import json
-except ImportError as e:
- import simplejson as json
+import json
from htsworkflow.auth import apidata
from htsworkflow.util import api
try:
apipayload = urllib.parse.urlencode(apidata)
web = urllib.request.urlopen(url, apipayload)
- except urllib.request.HTTPError as e:
+ except urllib.error.HTTPError as e:
errmsg = 'URLError: %d %s' % (e.code, e.msg)
LOGGER.error(errmsg)
LOGGER.error('opened %s' % (url,))