Skip to content

Commit

Permalink
Attempt to resolve error
Browse files Browse the repository at this point in the history
  • Loading branch information
filipchristiansen committed Jan 2, 2025
1 parent 61dbc8b commit 77244e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def process_query(
print(f"{Colors.RED}{e}{Colors.END}")

context["error_message"] = f"Error: {e}"
return template_response(context)
return template_response(context=context)

if len(content) > MAX_DISPLAY_SIZE:
content = (
Expand All @@ -129,7 +129,7 @@ async def process_query(
}
)

return template_response(context)
return template_response(context=context)


def _print_query(url: str, max_file_size: int, pattern_type: str, pattern: str) -> None:
Expand Down

0 comments on commit 77244e7

Please sign in to comment.