Skip to content

Commit

Permalink
possible error with the /add route , throws internal server error (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenRhino committed Mar 29, 2024
1 parent 227ad29 commit 2b5eedc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions artemis/templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@


def dedent(text: str) -> str:
if not text:
return ""
return textwrap.dedent(text)


def render_markdown(markdown_text: str) -> str:
if not markdown_text:
return ""
return markdown.markdown(markdown_text)


Expand Down

0 comments on commit 2b5eedc

Please sign in to comment.