I have a bulb application that looks something like this:
app.py
blueprints/
www.py
shop.py
app.pyimports drawing objects from each of the files in the directory blueprintsand registers them with the object Flaskin app.pywith the corresponding subdomain (also imported from the file). Each drawing registers error handlers, however, they are only called when the view manually causes abort(), rather than general errors (i.e., invoking a nonexistent URL in a subdomain that is managed shop.pyinstead calls the error handler on app.py).
Is there a way to get the flask to pass errors to a project that processes the subdomain in which this error occurs?
source
share