Skip to content

Commit

Permalink
[qa][client] rename parameter automatic_refresh to automatic_refresh_…
Browse files Browse the repository at this point in the history
…token
  • Loading branch information
EvanBldy committed Jul 11, 2024
1 parent f07170d commit e76287d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gazu/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
host,
ssl_verify=True,
cert=None,
automatic_refresh=False,
automatic_refresh_token=False,
callback_not_authenticated=None,
):
self.tokens = {"access_token": "", "refresh_token": ""}
Expand All @@ -44,22 +44,22 @@ def __init__(
self.session.cert = cert
self.host = host
self.event_host = host
self.automatic_refresh = automatic_refresh
self.automatic_refresh_token = automatic_refresh_token
self.callback_not_authenticated = callback_not_authenticated


def create_client(
host,
ssl_verify=True,
cert=None,
automatic_refresh=False,
automatic_refresh_token=False,
callback_not_authenticated=None,
):
return KitsuClient(
host,
ssl_verify,
cert=cert,
automatic_refresh=automatic_refresh,
automatic_refresh_token=automatic_refresh_token,
callback_not_authenticated=callback_not_authenticated,
)

Expand Down Expand Up @@ -340,7 +340,7 @@ def check_status(request, path, client=None):
)
elif status_code in [401, 422]:
try:
if client is not None and client.automatic_refresh:
if client is not None and client.automatic_refresh_token:
from . import refresh_token

refresh_token(client=client)
Expand Down

0 comments on commit e76287d

Please sign in to comment.