mirror of https://github.com/MISP/misp-modules
fix: [test] Better error handling
parent
1f75b8f865
commit
c5801d1776
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue