Skip to content

KeyError: 'workspace_id' #9

@eightys3v3n

Description

@eightys3v3n

Create the TogglClientAPI with the settings:

  • token
  • user_agent

Attempts to use get_workspaces throw KeyError: 'workspace_id'.
Seems to be caused by not providing a workspace_id even though it isn't used in get_workspaces and it isn't shown in the getting started material.

Is there a reason for this behaviour or can I submit a PR to change it?
I suggest making workspace_id None to start, then throwing an error if something attempts to use it.
I also don't see workspace_name used anywhere so I assume this is supposed to be workspace_id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions