curiousgeorge1292 commited on
Commit
e908559
·
verified ·
1 Parent(s): 60839be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -347,9 +347,8 @@ def email_agent(credentials_info, name, email, prospect_name, linkedin_url, webs
347
  except Exception as e:
348
  return (f"<div style='color: red;'>Error saving to Gmail drafts: {str(e)}</div>", email_content)
349
 
350
- else:
351
- return ("<div style='color: red;'>Please authenticate with Gmail first.</div>",
352
- email_content)
353
 
354
  # Gradio Interface
355
  def verify_user(email):
 
347
  except Exception as e:
348
  return (f"<div style='color: red;'>Error saving to Gmail drafts: {str(e)}</div>", email_content)
349
 
350
+ except Exception as e:
351
+ return (f"<div style='color: red;'>Error: {str(e)}</div>", "")
 
352
 
353
  # Gradio Interface
354
  def verify_user(email):