From 4d529a1eed3acfb63210f16a4493762d986eb622 Mon Sep 17 00:00:00 2001 From: jvoisin <julien.voisin@dustri.org> Date: Sun, 15 Dec 2019 15:45:32 +0100 Subject: [PATCH] =?UTF-8?q?pytlint=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libmat2/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmat2/web.py b/libmat2/web.py index 75633a3..18ef04f 100644 --- a/libmat2/web.py +++ b/libmat2/web.py @@ -96,14 +96,14 @@ class _HTMLParser(parser.HTMLParser): self.tag_required_blocklist = required_blocklisted_tags self.tag_blocklist = blocklisted_tags - def error(self, msg): + def error(self, message): """ Amusingly, Python's documentation doesn't mention that this function needs to be implemented in subclasses of the parent class of parser.HTMLParser. This was found by fuzzing, triggering the following exception: NotImplementedError: subclasses of ParserBase must override error() """ - raise ValueError(msg) + raise ValueError(message) def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]): # Ignore the type, because mypy is too stupid to infer -- GitLab