From 1bb9ec0f9912b1aeea9b6330f86a1ca2c4acc9a1 Mon Sep 17 00:00:00 2001 From: cato447 Date: Wed, 14 Jan 2026 20:45:19 +0100 Subject: [PATCH] added notification to asses problem with apple devices --- app/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routes.py b/app/routes.py index d477e2d..94b1030 100644 --- a/app/routes.py +++ b/app/routes.py @@ -155,6 +155,9 @@ def rules(): @bp.errorhandler(429) def ratelimit_handler(e): + msg = Message('429 Ratelimit hit', recipients=["simon.bussmann@tum.de"]) + msg.body = f"IP {request.remote_addr} triggered the rate limit" + mail.send(msg) return render_template("ratelimit_error.html", error_message=e.description) @bp.errorhandler(500)