diff --git a/swh/indexer/tests/test_fossology_license.py b/swh/indexer/tests/test_fossology_license.py --- a/swh/indexer/tests/test_fossology_license.py +++ b/swh/indexer/tests/test_fossology_license.py @@ -52,7 +52,7 @@ path = path.decode("utf-8") # path is something like /tmp/tmpXXX/ so we keep only the sha1 part path = path.split("/")[-1] - return {"licenses": SHA1_TO_LICENSES.get(path)} + return {"licenses": SHA1_TO_LICENSES.get(path, [])} CONFIG = {