Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 5a9daa0

Browse files
committed
fix: auth_tkt spelling
1 parent 54efc59 commit 5a9daa0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

atomx/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Atomx(object):
3737
:return: :class:`.Atomx` session to interact with the api
3838
"""
3939
def __init__(self, email, password, api_endpoint=API_ENDPOINT):
40-
self.auth_tk = None
40+
self.auth_tkt = None
4141
self.email = email
4242
self.password = password
4343
self.api_endpoint = api_endpoint.rstrip('/') + '/'
@@ -68,11 +68,11 @@ def login(self, email=None, password=None):
6868
if r.status_code == 401:
6969
raise InvalidCredentials
7070
raise APIError(r.json()['error'])
71-
self.auth_tk = r.json()['auth_tkt']
71+
self.auth_tkt = r.json()['auth_tkt']
7272

7373
def logout(self):
7474
"""Removes authentication token from session."""
75-
self.auth_tk = None
75+
self.auth_tkt = None
7676
self.session.get(self.api_endpoint + 'logout')
7777

7878
def search(self, query):

0 commit comments

Comments
 (0)