From f5ca497b7522a2dad637cef238da9716ac133057 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 19 Sep 2023 15:07:43 -0300 Subject: [PATCH] [python] Fix docs URL in error message (#10544) --- .changeset/rude-bulldogs-double.md | 5 +++++ packages/python/vc_init.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/rude-bulldogs-double.md diff --git a/.changeset/rude-bulldogs-double.md b/.changeset/rude-bulldogs-double.md new file mode 100644 index 000000000..0dc3d551c --- /dev/null +++ b/.changeset/rude-bulldogs-double.md @@ -0,0 +1,5 @@ +--- +"@vercel/python": patch +--- + +Fix docs URL in error message diff --git a/packages/python/vc_init.py b/packages/python/vc_init.py index 2f56d30af..0a0b1952f 100644 --- a/packages/python/vc_init.py +++ b/packages/python/vc_init.py @@ -30,7 +30,7 @@ if 'handler' in __vc_variables or 'Handler' in __vc_variables: 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') @@ -307,5 +307,5 @@ elif 'app' in __vc_variables: 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)