diff --git a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py index 5ca5ec28..50bd1d22 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py @@ -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: