mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +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
@@ -4,7 +4,7 @@ from typing import Optional
|
||||
|
||||
try:
|
||||
from tools.lib.template_parser import (
|
||||
TemplateParserException,
|
||||
TemplateParserError,
|
||||
is_django_block_tag,
|
||||
tokenize,
|
||||
validate,
|
||||
@@ -21,7 +21,7 @@ class ParserTest(unittest.TestCase):
|
||||
fn: Optional[str] = None,
|
||||
text: Optional[str] = None,
|
||||
) -> None:
|
||||
with self.assertRaisesRegex(TemplateParserException, error):
|
||||
with self.assertRaisesRegex(TemplateParserError, error):
|
||||
validate(fn=fn, text=text)
|
||||
|
||||
def test_is_django_block_tag(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user