mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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:
committed by
Tim Abbott
parent
eb2c822d3f
commit
73c4da7974
@@ -57,7 +57,7 @@ def notify_bot_owner_about_invalid_json(
|
||||
)
|
||||
|
||||
|
||||
class MissingHTTPEventHeader(JsonableError):
|
||||
class MissingHTTPEventHeaderError(JsonableError):
|
||||
code = ErrorCode.MISSING_HTTP_EVENT_HEADER
|
||||
data_fields = ["header"]
|
||||
|
||||
@@ -176,7 +176,7 @@ def validate_extract_webhook_http_header(
|
||||
request.user, request.user.realm, message_body
|
||||
)
|
||||
|
||||
raise MissingHTTPEventHeader(header)
|
||||
raise MissingHTTPEventHeaderError(header)
|
||||
|
||||
return extracted_header
|
||||
|
||||
|
||||
Reference in New Issue
Block a user