diff --git a/tabcmd/commands/auth/session.py b/tabcmd/commands/auth/session.py index ef8b36c3..a7b5280a 100644 --- a/tabcmd/commands/auth/session.py +++ b/tabcmd/commands/auth/session.py @@ -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) @@ -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) diff --git a/tabcmd/commands/datasources_and_workbooks/publish_command.py b/tabcmd/commands/datasources_and_workbooks/publish_command.py index be0c7ef2..67493091 100644 --- a/tabcmd/commands/datasources_and_workbooks/publish_command.py +++ b/tabcmd/commands/datasources_and_workbooks/publish_command.py @@ -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")