Skip to content

Commit

Permalink
Do not inspect type, just set the attr
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Nov 12, 2024
1 parent 825579d commit 4e9e470
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/kinto_http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from kinto_http.constants import DO_NOT_OVERWRITE
from kinto_http.endpoints import Endpoints
from kinto_http.exceptions import BucketNotFound, CollectionNotFound, KintoException
from kinto_http.login import BrowserOAuth
from kinto_http.patch_type import BasicPatch, PatchType
from kinto_http.session import create_session

Expand Down Expand Up @@ -49,8 +48,11 @@ def __init__(
):
self.endpoints = Endpoints()

if isinstance(auth, BrowserOAuth):
try:
# See `BrowserOAuth` in login.py (for example).
auth.server_url = server_url
except AttributeError:
pass

session_kwargs = dict(
server_url=server_url,
Expand Down

0 comments on commit 4e9e470

Please sign in to comment.