diff options
Diffstat (limited to 'python/tidy/tidy.py')
-rw-r--r-- | python/tidy/tidy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py index 88e92b80922..247e74a8713 100644 --- a/python/tidy/tidy.py +++ b/python/tidy/tidy.py @@ -470,7 +470,7 @@ def validate_dependency_licenses(): error_fields = error['fields'] if error['type'] == 'summary': num_license_errors = error_fields['licenses']['errors'] - elif 'graphs' in error_fields: + elif 'graphs' in error_fields and error_fields['graphs']: crate = error_fields['graphs'][0]['Krate'] license_name = error_fields['notes'][0] message = f'Rejected license "{license_name}". Run `cargo deny` for more details' |