reraise AUR HTTP Error

This commit is contained in:
lilydjwg 2013-11-17 19:20:05 +08:00
parent 659ff63fe0
commit 3a1960425f

View File

@ -14,6 +14,9 @@ def get_version(name, conf, callback):
AsyncHTTPClient().fetch(url, partial(_aur_done, name, callback))
def _aur_done(name, callback, res):
if res.error:
raise res.error
data = json.loads(res.body.decode('utf-8'))
if not data['results']: