##// END OF EJS Templates
hgweb: fix attribute error in error response (issue2060)
Mark Determann -
r10951:5dc09507 stable
parent child Browse files
Show More
@@ -179,6 +179,8 def unbundle(repo, req):
179 179 raise ErrorResponse(HTTP_OK, inst)
180 180 except (OSError, IOError), inst:
181 181 error = getattr(inst, 'strerror', 'Unknown error')
182 if not isinstance(error, str):
183 error = 'Error: %s' % str(error)
182 184 if inst.errno == errno.ENOENT:
183 185 code = HTTP_NOT_FOUND
184 186 else:
General Comments 0
You need to be logged in to leave comments. Login now