Skip to content

Conversation

@DealsBeam
Copy link

The send_top function would previously attempt to retry a TOTP code
if it failed, assuming that the 30-second window had expired. However,
this logic would cause a NameError if the user had provided a 6-digit
code instead of a TOTP secret.

This commit fixes the issue by only attempting to retry the TOTP code
if a totp_secret is available. Otherwise, the program will exit
gracefully.

google-labs-jules bot and others added 2 commits November 1, 2025 22:52
The `send_top` function would previously attempt to retry a TOTP code
if it failed, assuming that the 30-second window had expired. However,
this logic would cause a `NameError` if the user had provided a 6-digit
code instead of a TOTP secret.

This commit fixes the issue by only attempting to retry the TOTP code
if a `totp_secret` is available. Otherwise, the program will exit
gracefully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant