xiddiqui commited on
Commit
01bf3a0
·
1 Parent(s): c31f036

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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