Skip to content

Commit

Permalink
Move unwanted print statement to input (#315)
Browse files Browse the repository at this point in the history
* Move unwanted print statement to `input`

* Update pyrh/models/sessionmanager.py

---------

Co-authored-by: Adithya Balaji <[email protected]>
  • Loading branch information
dormant-user and adithyabsk authored Mar 4, 2024
1 parent 09a64a4 commit e301e80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyrh/models/sessionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,10 @@ def _mfa_oauth2(self, oauth_payload: JSON, attempts: int = 3) -> OAuth:
number of attempts.
"""
print("Input mfa code:")
if self.mfa != "":
mfa_code = pyotp.TOTP(self.mfa).now()
else:
mfa_code = input()
mfa_code = input("Input mfa code: ")
oauth_payload["mfa_code"] = mfa_code
oauth, res = self.post(
urls.OAUTH,
Expand Down

0 comments on commit e301e80

Please sign in to comment.