Fix exception when can't connect to EDSM on Mac

This commit is contained in:
Jonathan Harris committed 2017-01-22 20:13:09 +00:00
1 parent 9d59ef34c7
commit d7aae5dee3
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,7 @@ if platform=='darwin':
h.close()
return r
except urllib2.HTTPError, e:
return urllib2.Response(url, e.code, {}, '') # requests doesn't raise exceptions for HTTP errors
return Response(url, e.code, {}, '') # requests doesn't raise exceptions for HTTP errors
except:
raise