From c37fadcfe10101a06dbf8ce98abc3fd323a253fc Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 20 Oct 2015 16:19:55 -0700 Subject: [PATCH] fix import path for HTTPError exception --- scripts/htsw-record-runfolder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/htsw-record-runfolder b/scripts/htsw-record-runfolder index dfd0ae1..58a13ce 100755 --- a/scripts/htsw-record-runfolder +++ b/scripts/htsw-record-runfolder @@ -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() -- 2.30.2