Update app.py
Browse files
app.py
CHANGED
|
@@ -620,9 +620,9 @@ def internal_server_error(e):
|
|
| 620 |
def request_entity_too_large(e):
|
| 621 |
return render_template('index.html', error='File too large. Max 50 MB.'), 413
|
| 622 |
|
| 623 |
-
@app.errorhandler(429)
|
| 624 |
-
def ratelimit_handler(e):
|
| 625 |
-
|
| 626 |
|
| 627 |
|
| 628 |
# --- Main ---
|
|
|
|
| 620 |
def request_entity_too_large(e):
|
| 621 |
return render_template('index.html', error='File too large. Max 50 MB.'), 413
|
| 622 |
|
| 623 |
+
# @app.errorhandler(429)
|
| 624 |
+
# def ratelimit_handler(e):
|
| 625 |
+
# return render_template('index.html', error=f'Rate limit exceeded: {e.description}'), 429
|
| 626 |
|
| 627 |
|
| 628 |
# --- Main ---
|