mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-27 00:52:12 +00:00
reraise AUR HTTP Error
This commit is contained in:
parent
659ff63fe0
commit
3a1960425f
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user