Skip to content
Snippets Groups Projects
Commit 3c7244ed authored by Marc Troelitzsch's avatar Marc Troelitzsch Committed by Adam Williamson
Browse files

refactor: simplify clientlogin logic

- Removed the unnecessary try/catch block around the get_token call. The
  code would already have thrown an exception earlier if the site was
  uninitialized, making this block redundant.
- Eliminated the while True loop, as every branch of the loop had a
  return statement, preventing it from executing more than once.
- Replaced outdated printf-style string formatting with str.format().
- Renamed the `login` variable to `response`
parent 78006fc7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment