Actually, get_file_package can return None ("Return None if the file is not shipped by any package."), which would cause the issue.
Actually, get_file_package can return None ("Return None if the file is not shipped by any package."), which would cause the issue.