[PR #8483] fix: commands.py #26071

Closed
opened 2026-02-21 20:34:39 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/8483

State: closed
Merged: Yes


Checklist:

Important

Please review the checklist below before submitting your pull request.

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Description

Enhance command's message and fix bug for new_email validation

  • before
    try:
        email_validate(new_email)
    except:
        click.echo(click.style("sorry. {} is not a valid email. ".format(email), fg="red"))
  • after
    try:
        email_validate(new_email)
    except:
        click.echo(click.style("Invalid email: {}".format(new_email), fg="red"))

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
**Original Pull Request:** https://github.com/langgenius/dify/pull/8483 **State:** closed **Merged:** Yes --- # Checklist: > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods # Description Enhance command's message and fix bug for new_email validation - before ``` try: email_validate(new_email) except: click.echo(click.style("sorry. {} is not a valid email. ".format(email), fg="red")) ``` - after ``` try: email_validate(new_email) except: click.echo(click.style("Invalid email: {}".format(new_email), fg="red")) ``` ## Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [x] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
yindo added the pull-request label 2026-02-21 20:34:39 -05:00
yindo closed this issue 2026-02-21 20:34:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#26071