mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
reraise AUR HTTP Error
This commit is contained in:
parent
659ff63fe0
commit
3a1960425f
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue