added notification to asses problem with apple devices

This commit is contained in:
2026-01-14 20:45:19 +01:00
parent 33ccc60887
commit 1bb9ec0f99

View File

@@ -155,6 +155,9 @@ def rules():
@bp.errorhandler(429) @bp.errorhandler(429)
def ratelimit_handler(e): 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) return render_template("ratelimit_error.html", error_message=e.description)
@bp.errorhandler(500) @bp.errorhandler(500)