summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/scanpypi2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/scanpypi b/utils/scanpypi
index 1720c0c051..14ee87784a 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -436,7 +436,7 @@ class BuildrootPackage():
for license_file in license_files:
with open(license_file) as lic_file:
match = liclookup.match(lic_file.read())
- if match.confidence >= 90.0:
+ if match is not None and match.confidence >= 90.0:
license_names.append(match.license.id)
if len(license_names) > 0:
OpenPOWER on IntegriCloud