added notification to asses problem with apple devices
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user