scrutinise: skip/log invalid responses
This commit is contained in:
parent
1542128423
commit
2ce912f3cb
|
@ -26,7 +26,12 @@ class Command(BaseCommand):
|
|||
print('Error with %s (%r)' % (service.url, e))
|
||||
return
|
||||
|
||||
versions = response.json()
|
||||
try:
|
||||
versions = response.json()
|
||||
except ValueError:
|
||||
print('Non-JSON response for %s' % service.url)
|
||||
return
|
||||
|
||||
current_modules = set([x for x in service.service.get_modules(platforms=[service.platform])])
|
||||
seen_modules = set()
|
||||
|
||||
|
|
Loading…
Reference in New Issue