Skip to content

Commit

Permalink
test empty token
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmonteiro committed Jan 17, 2024
1 parent 658564c commit 5bb4166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='tercen_python_client',
version='0.9.3',
version='0.9.4',
packages=find_packages(exclude=['tests']),
install_requires=[
'numpy==1.22.*',
Expand Down
2 changes: 1 addition & 1 deletion tercen/client/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class OperatorContextDev(TercenContext):
def __init__(self, workflowId = None, stepId = None, authToken = None, username = None, password = None,
serviceUri = None):
self.client = TercenClient(serviceUri)
if authToken is None:
if authToken is None or authToken == '':
self.session = self.client.userService.connect(username, password)
self.client.userService.tercenClient.token = self.session.token.token

Expand Down

0 comments on commit 5bb4166

Please sign in to comment.