hgext/largefiles/remotestore.py
changeset 15188 8e115063950d
parent 15168 cfccd3bee7b3
child 15252 6e809bb4f969
--- a/hgext/largefiles/remotestore.py	Sat Oct 01 16:18:51 2011 -0500
+++ b/hgext/largefiles/remotestore.py	Sat Oct 01 16:39:51 2011 -0400
@@ -7,7 +7,6 @@
 '''Remote largefile store; the base class for servestore'''
 
 import urllib2
-import HTTPError
 
 from mercurial import util
 from mercurial.i18n import _
@@ -57,7 +56,7 @@
 
         try:
             length, infile = self._get(hash)
-        except HTTPError, e:
+        except urllib2.HTTPError, e:
             # 401s get converted to util.Aborts; everything else is fine being
             # turned into a StoreError
             raise basestore.StoreError(filename, hash, self.url, str(e))