ruff: Fix S110 try-except-pass detected, consider logging the exception.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-11-01 19:21:57 -07:00
parent 1cb7fdd5b3
commit 6a7fe98eef

View file

@ -30,7 +30,7 @@ try:
template_data = template_data.replace( template_data = template_data.replace(
"--use-sessions", "--use-sessions --forward-mail-zephyrs" "--use-sessions", "--use-sessions --forward-mail-zephyrs"
) )
except Exception: except FileNotFoundError:
pass pass
supervisor_path.write_text(template_data.replace("USERNAME", short_user)) supervisor_path.write_text(template_data.replace("USERNAME", short_user))