fix exception handling

This commit is contained in:
Stephan Kulow
2014-02-18 07:22:55 +01:00
parent 15800dbe27
commit 28789e0c23
2 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ class RequestFinder:
url = makeurl(apiurl, ['request', str(request)])
try:
f = http_GET(url)
except HTTPError:
except urllib2.HTTPError:
return None
root = ET.parse(f).getroot()