ruff: Fix G201 Logging .error(..., exc_info=True).exception(...).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-02-03 16:43:46 -08:00
committed by Tim Abbott
parent 59eca10a43
commit b08c81b312

View File

@@ -55,7 +55,7 @@ def sync_ldap_user_data(
"Use the --force option if the mass deactivation is intended."
)
except Exception:
logger.error("LDAP sync failed", exc_info=True)
logger.exception("LDAP sync failed")
raise
logger.info("Finished update.")