~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-23 02:05:44 UTC
  • mfrom: (1558.1.7 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060223020544-d9efcf806507124f
Fix handling of non-http errors produced by http transport

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
            f.read()
179
179
            f.close()
180
180
            return True
181
 
        except urllib2.URLError, e:
 
181
        except urllib2.HTTPError, e:
182
182
            mutter('url error code: %s for has url: %r', e.code, path)
183
183
            if e.code == 404:
184
184
                return False