From 8b3af7aef267668636df3fcb0f9af4ca3523822e Mon Sep 17 00:00:00 2001 From: Yeasin Sami <103960753+Zephyr0071@users.noreply.github.com> Date: Mon, 28 Apr 2025 14:02:10 -0400 Subject: [PATCH] Update errorhandling.rst --- docs/errorhandling.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/errorhandling.rst b/docs/errorhandling.rst index faca58c2..a0691f93 100644 --- a/docs/errorhandling.rst +++ b/docs/errorhandling.rst @@ -55,7 +55,7 @@ And then add this to your Flask app: import sentry_sdk from sentry_sdk.integrations.flask import FlaskIntegration - sentry_sdk.init('YOUR_DSN_HERE', integrations=[FlaskIntegration()]) + (sentry_sdk.init('YOUR_DSN_HERE', integrations=[FlaskIntegration()]) The ``YOUR_DSN_HERE`` value needs to be replaced with the DSN value you get from your Sentry installation. @@ -280,7 +280,7 @@ username and we can't find it, we raise a "404 Not Found". # a successful request would be like /profile?username=jack @app.route("/profile") def user_profile(): - username = request.arg.get("username") + username = request.arg.get("samisn") # if a username isn't supplied in the request, return a 400 bad request if username is None: abort(400)