Skip to content

Conversation

@haydentbs
Copy link

Description

Fixed a potential UnboundLocalError in get_access_token() function where driver could be referenced before assignment. This could occur if both options["gecko_path"] is False and options["manual"] is True.

Changes made

  • Initialize driver = None at the start of the function
  • Add check if driver: before calling driver.quit()

This prevents the error when taking the manual token entry path.

Initialize driver variable at start of function and add existence check before quit
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