fix import path for HTTPError exception
authorDiane Trout <diane@ghic.org>
Tue, 20 Oct 2015 23:19:55 +0000 (16:19 -0700)
committerDiane Trout <diane@ghic.org>
Tue, 20 Oct 2015 23:19:55 +0000 (16:19 -0700)
scripts/htsw-record-runfolder

index dfd0ae11b437e1dda5a045852997aaf85cea26c8..58a13ce076666beab2ee56b5370bd41053be2f77 100755 (executable)
@@ -46,7 +46,7 @@ def update_db(root_url, flowcells, serial, debug=False):
         req = urllib.request.Request(url)
         try:
             response = urllib2.urlopen(req)
-        except urllib.request.HTTPError, e:
+        except urllib.error.HTTPError, e:
             print 'ERROR - HTTP OUTPUT (Return Code: %s); use -v/--verbose for more details.' % (e.code)
             if debug:
                 print e.read()