Skip to content

Commit

Permalink
make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Oct 31, 2023
1 parent cf6cb21 commit f2f86d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def to_markdown_constraint(
if isinstance(obj, AnyOf):
self.to_markdown_anyof(obj, output)
elif not isinstance(obj, Include):
raise Exception(f"Trying to generate Markdown for a wrong type {type(obj)}")
raise TypeError(f"Trying to generate Markdown for a wrong type {type(obj)}")

def render_md(self):
for md_filename in self.file_names:
Expand Down

0 comments on commit f2f86d8

Please sign in to comment.