Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix for #147#157

Merged
sQu4rks merged 1 commit into
WebexCommunity:masterWebexCommunity/WebexPythonSDK:masterfrom
fbradyirl:patch-1fbradyirl/webexteamssdk:patch-1Copy head branch name to clipboard
Apr 8, 2021
Merged

Fix for #147#157
sQu4rks merged 1 commit into
WebexCommunity:masterWebexCommunity/WebexPythonSDK:masterfrom
fbradyirl:patch-1fbradyirl/webexteamssdk:patch-1Copy head branch name to clipboard

Conversation

@fbradyirl

Copy link
Copy Markdown
Contributor

data["organization"] is never initialised so it is not possible to use the be_geo_id or caller features.

Trying to set an attribute in the user agent, but I get a key error.

        self.teams = WebexTeamsAPI(access_token=access_token,
                                   be_geo_id= f"{str(uuid.uuid4())}".upper())
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/api/__init__.py", line 182, in __init__
    self._session = RestSession(
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/restsession.py", line 230, in __init__
    "User-Agent": user_agent(be_geo_id=be_geo_id, caller=caller),
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/restsession.py", line 155, in user_agent
    data["organization"]["be_geo_id"] = be_geo_id
KeyError: 'organization'

@sQu4rks sQu4rks merged commit 1bce6e7 into WebexCommunity:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.