Skip to content

Commit 8c5acfc

Browse files
debug
1 parent 9587eec commit 8c5acfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service/tests/basic_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ def mfa_token(tokencode=None):
257257
if tokencode is None:
258258
tokencode = MFA_GEN_CODE
259259
print(f'DEBUG:: generating MFA token with tokencode: {tokencode}')
260+
if tokencode is None:
261+
print(f'ERROR! tokencode should not be None! Env: {os.environ.items()}')
260262
totp = pyotp.TOTP(tokencode)
261263
return totp.now()
262264

0 commit comments

Comments
 (0)