Show More
@@ -103,7 +103,10 b' class httprepository(remoterepository):' | |||
|
103 | 103 | q.update(args) |
|
104 | 104 | qs = urllib.urlencode(q) |
|
105 | 105 | cu = "%s?%s" % (self.url, qs) |
|
106 | resp = urllib2.urlopen(cu) | |
|
106 | try: | |
|
107 | resp = urllib2.urlopen(cu) | |
|
108 | except httplib.HTTPException, inst: | |
|
109 | raise IOError(None, _('http error while sending %s command') % cmd) | |
|
107 | 110 | proto = resp.headers['content-type'] |
|
108 | 111 | |
|
109 | 112 | # accept old "text/plain" and "application/hg-changegroup" for now |
General Comments 0
You need to be logged in to leave comments.
Login now