Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
jacalata committed Jan 10, 2025
1 parent 58bffc1 commit 6021d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tabcmd/commands/auth/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _sign_in(self, tableau_auth) -> TSC.Server:
connected_server: TSC.Server = self.tableau_server
else:
Errors.exit_with_error(self.logger, "Attempted to sign in with no server connection created")

try:
# it's the same call for token or user-pass
connected_server = self.tableau_server.auth.sign_in(tableau_auth)
Expand All @@ -291,7 +291,6 @@ def _sign_in(self, tableau_auth) -> TSC.Server:
Errors.exit_with_error(self.logger, message="Sign in failed")
return connected_server


def _get_saved_credentials(self):
if self.last_login_using == "username":
credentials = self._create_new_credential(None, Session.PASSWORD_CRED_TYPE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def run_command(cls, args):
def get_publish_mode(args, logger):
# default: fail if it already exists on the server
default_mode = TSC.Server.PublishMode.CreateNew
publish_mode : Optional[str] = default_mode
publish_mode: Optional[str] = default_mode

if args.replace:
raise AttributeError("Replacing an extract is not yet implemented")
Expand Down

0 comments on commit 6021d85

Please sign in to comment.