Skip to content

Commit

Permalink
Properly handle timeouts and other urlerrors in resource proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 12, 2012
1 parent f1894d3 commit df60b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/resourceproxy/controller.py
Expand Up @@ -15,7 +15,7 @@ def proxy_resource(context, data_dict):
url = resource['url']
try:
req = urllib2.urlopen(url)
except urllib2.HTTPError, error:
except urllib2.URLError, error:
req = error
base.response.headers = req.headers

Expand Down

0 comments on commit df60b65

Please sign in to comment.