Skip to content

Commit

Permalink
Chore: Fix example using deprecated register_error_handlers method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mews authored and Seluj78 committed Jun 12, 2024
1 parent 8ecc636 commit be4ff78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ pip install flask-utils

```python
from flask import Flask
from flask_utils import register_error_handlers
from flask_utils import FlaskUtils
from flask_utils import BadRequestError

app = Flask(__name__)

register_error_handlers(app)
utils = FlaskUtils(app, register_error_handlers=True)

@app.route('/')
def index():
Expand Down

0 comments on commit be4ff78

Please sign in to comment.