Skip to content

get_user_teams the case of being a member of zero teams #110

@roman1900

Description

@roman1900

I'm wondering if get_user_teams of class User should not throw an exception on an empty list as below.

if api_call == list() or api_call[0].get("id") is None:
                logging.error(f"Check the error: {api_call}.")
                raise Exception 

A user being a member of zero teams seems like a valid outcome to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions