Skip to content

Commit 0be8463

Browse files
committed
Update WebexTeamsAPI object
We cannot use the `self.base_url` object property until after `self._session` is initialized, which needs an access token that for an OAuth flow needs access to the base URL. To break this circular dependency, just use the base URL provided in the `base_url` parameter.
1 parent 6c3237e commit 0be8463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webexteamssdk/api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def __init__(self, access_token=None, base_url=DEFAULT_BASE_URL,
131131

132132
# Init AccessTokensAPI wrapper early to use for oauth requests
133133
self.access_tokens = AccessTokensAPI(
134-
self.base_url, object_factory,
135-
single_request_timeout=single_request_timeout
134+
base_url, object_factory,
135+
single_request_timeout=single_request_timeout,
136136
)
137137

138138
# Check if the user has provided the required oauth parameters

0 commit comments

Comments
 (0)