fix(Email Account): handle errors during error handling by barredterra [frappe] PR#27152
From: https://github.com/frappe/frappe/pull/27152
Date: 2024-07-17 13:20:09+02:00
- fix(Email Account): handle errors during error handling
Diagnostics
pre-commit failed for source commit: eb28a7322bcf50e003db59aa962e7d8a4adbcb5c
Run ruff linter..........................................................Failed
- hook id: ruff
- exit code: 1
frappe/email/doctype/email_account/email_account.py:45:15: RUF005 Consider `[*list(kwargs.values()), "default"]` instead of concatenation
frappe/email/doctype/email_account/email_account.py:52:32: RUF015 Prefer `next(iter(matched_accounts.values()))` over single element slice
Found 2 errors.
No fixes available (2 hidden fixes can be enabled with the `--unsafe-fixes` option).
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-27152
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-27152
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease