Skip to content

Call to assign_project_application_id() results in TypeError #69

@schristiaens

Description

@schristiaens

I get the following result on any call to assign_project_application_id:

File "assign_application_id_to_project.py", line 23, in <module> response = hub.assign_project_application_id(args.project_name, args.application_id, overwrite=args.overwrite) File "/usr/local/lib/python3.7/site-packages/blackduck/HubRestApi.py", line 1073, in assign_project_application_id existing_application_id, application_id_url = self.get_project_application_id(project_name) File "/usr/local/lib/python3.7/site-packages/blackduck/HubRestApi.py", line 1126, in get_project_application_id project_mapping_info = self.get_project_info(project_name, 'project-mappings') File "/usr/local/lib/python3.7/site-packages/blackduck/HubRestApi.py", line 1142, in get_project_info link = self.get_link(project, link_name) File "/usr/local/lib/python3.7/site-packages/blackduck/HubRestApi.py", line 211, in get_link if '_meta' in bd_rest_obj and 'links' in bd_rest_obj['_meta']: TypeError: argument of type 'NoneType' is not iterable
It appears that the 'links' field is empty, but I'm not clear on where that should be populated from, or the proper return value if that is in fact empty.

I'm running version 0.37, installed from pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions