pranavgupta1234/rqmonitor

AttributeError: 'Blueprint' object has no attribute 'before_app_first_request'

liborjelinek opened this issue · 1 comments

$ rqmonitor
Traceback (most recent call last):
  File "/Users/liborjelinek/git-dm/documatt-api/.venv/bin/rqmonitor", line 5, in <module>
    from rqmonitor.cli import main
  File "/Users/liborjelinek/git-dm/documatt-api/.venv/lib/python3.11/site-packages/rqmonitor/__init__.py", line 3, in <module>
    from .bp import monitor_blueprint
  File "/Users/liborjelinek/git-dm/documatt-api/.venv/lib/python3.11/site-packages/rqmonitor/bp.py", line 54, in <module>
    @monitor_blueprint.before_app_first_request
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Blueprint' object has no attribute 'before_app_first_request'. Did you mean: 'before_app_request'?

Python 3.11

If you run this project on Python 3.11, you should upgrade the Flask version by hand.