ruff: Fix N818 exception name should be named with an Error suffix.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-11-17 00:30:48 -08:00
committed by Tim Abbott
parent eb2c822d3f
commit 73c4da7974
110 changed files with 507 additions and 507 deletions

View File

@@ -182,7 +182,7 @@ from zerver.lib.event_schema import (
check_user_topic,
)
from zerver.lib.events import (
RestartEventException,
RestartEventError,
apply_events,
fetch_initial_state_data,
post_process_state,
@@ -2499,7 +2499,7 @@ class NormalActionsTest(BaseAction):
check_has_zoom_token("events[0]", events[0], value=False)
def test_restart_event(self) -> None:
with self.assertRaises(RestartEventException):
with self.assertRaises(RestartEventError):
self.verify_action(lambda: send_restart_events(immediate=True))
def test_display_setting_event_not_sent(self) -> None: