Skip to content

Commit

Permalink
[python] Fix docs URL in error message (#10544)
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Sep 19, 2023
1 parent b0898a6 commit f5ca497
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-bulldogs-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vercel/python": patch
---

Fix docs URL in error message
4 changes: 2 additions & 2 deletions packages/python/vc_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def format_headers(headers, decode=False):
base = __vc_module.handler if ('handler' in __vc_variables) else __vc_module.Handler
if not issubclass(base, BaseHTTPRequestHandler):
print('Handler must inherit from BaseHTTPRequestHandler')
print('See the docs https://vercel.com/docs/runtimes#advanced-usage/advanced-python-usage')
print('See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python')
exit(1)

print('using HTTP Handler')
Expand Down Expand Up @@ -307,5 +307,5 @@ def vc_handler(event, context):

else:
print('Missing variable `handler` or `app` in file "__VC_HANDLER_ENTRYPOINT".')
print('See the docs https://vercel.com/docs/runtimes#advanced-usage/advanced-python-usage')
print('See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python')
exit(1)

0 comments on commit f5ca497

Please sign in to comment.