Spaces:
Sleeping
Sleeping
updated app.py
Browse files
app.py
CHANGED
@@ -148,6 +148,9 @@ def fetch_emails(days_back, auth_code="", include_job=True, include_personal=Tru
|
|
148 |
3. Click 'Allow' to grant access
|
149 |
4. Copy the authorization code shown
|
150 |
5. Paste the code here and click 'Connect and Fetch Emails' again"""
|
|
|
|
|
|
|
151 |
|
152 |
try:
|
153 |
# Process the auth code and fetch emails
|
|
|
148 |
3. Click 'Allow' to grant access
|
149 |
4. Copy the authorization code shown
|
150 |
5. Paste the code here and click 'Connect and Fetch Emails' again"""
|
151 |
+
|
152 |
+
except Exception as e:
|
153 |
+
return f"Error generating authorization URL: {str(e)}"
|
154 |
|
155 |
try:
|
156 |
# Process the auth code and fetch emails
|