fix: [test] Better error handling

pull/539/head
Jakub Onderka 2021-12-24 16:03:06 +01:00
parent 1f75b8f865
commit c5801d1776
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ class TestExpansions(unittest.TestCase):
if not isinstance(data, dict):
print(json.dumps(data, indent=2))
return data
if 'results' not in data:
return data
for result in data['results']:
values = result['values']
if values: