Skip to content

Commit

Permalink
Small change from a warning to an exception so that issues don't go m…
Browse files Browse the repository at this point in the history
…issing.
  • Loading branch information
rclapp authored and MariusWirtz committed Nov 29, 2023
1 parent d1416c4 commit c0df8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TM1py/Services/RestService.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ def _start_session(self, user: str, password: str, decode_b64: bool = False, nam
json=payload)
self.verify_response(response)
if 'TM1SessionId' not in self._s.cookies:
warnings.warn(
f"TM1SessionId has failed to be automatically added to the session cookies, future requests "
raise TM1pyException(
f"TM1SessionId has failed to be automaticallyadded to the session cookies, future requests "
"using this TM1Service instance will fail due to authentication. "
"Check the tm1-gateway domain settings are correct "
"in the container orchestrator ")
Expand Down

0 comments on commit c0df8af

Please sign in to comment.