scrutinise: skip/log invalid responses

This commit is contained in:
Frédéric Péters 2020-09-08 07:35:22 +02:00
parent 1542128423
commit 2ce912f3cb
1 changed files with 6 additions and 1 deletions

View File

@ -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()