forked from MarseyWorld/MarseyWorld
fix 500 werkzeug description, add note, and remove unused import
parent
665e6e4b21
commit
64cd11377e
|
@ -1,10 +1,14 @@
|
||||||
from files.helpers.wrappers import *
|
from files.helpers.wrappers import *
|
||||||
from flask import *
|
from flask import *
|
||||||
from werkzeug.exceptions import HTTPException
|
|
||||||
from urllib.parse import quote, urlencode
|
from urllib.parse import quote, urlencode
|
||||||
import time
|
import time
|
||||||
from files.__main__ import app, limiter
|
from files.__main__ import app, limiter
|
||||||
|
|
||||||
|
# If you're adding an error, go here:
|
||||||
|
# https://github.com/pallets/werkzeug/blob/main/src/werkzeug/exceptions.py
|
||||||
|
# and copy the description for the error code you're adding so that the
|
||||||
|
# default error message doesn't show up on the message. Please be exact.
|
||||||
|
|
||||||
WERKZEUG_ERROR_DESCRIPTIONS = {
|
WERKZEUG_ERROR_DESCRIPTIONS = {
|
||||||
400: "The browser (or proxy) sent a request that this server could not understand.",
|
400: "The browser (or proxy) sent a request that this server could not understand.",
|
||||||
401: "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
|
401: "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
|
||||||
|
|
Loading…
Reference in New Issue