From aef4e66cc9c2b9ae8c27bed539b939a38dd8b442 Mon Sep 17 00:00:00 2001 From: Youssef Badzi <95358038+badziyoussef@users.noreply.github.com> Date: Fri, 27 Dec 2024 12:39:46 +0100 Subject: [PATCH] fix variable referenced before assignment --- django_mailbox/transports/gmail.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django_mailbox/transports/gmail.py b/django_mailbox/transports/gmail.py index 99e8189a..2a00c93b 100644 --- a/django_mailbox/transports/gmail.py +++ b/django_mailbox/transports/gmail.py @@ -33,6 +33,7 @@ def _connect_oauth(self, username): ) access_token = None + google_email_address = username while access_token is None: try: access_token = get_google_access_token(username)