MCPcopy
hub / github.com/benoitc/gunicorn / ForbiddenUWSGIRequest

Class ForbiddenUWSGIRequest

gunicorn/uwsgi/errors.py:38–46  ·  view source on GitHub ↗

Raised when source IP is not in the allow list.

Source from the content-addressed store, hash-verified

36
37
38class ForbiddenUWSGIRequest(UWSGIParseException):
39 """Raised when source IP is not in the allow list."""
40
41 def __init__(self, host):
42 self.host = host
43 self.code = 403
44
45 def __str__(self):
46 return "uWSGI request from %r not allowed" % self.host

Callers 2

_check_allowed_ipMethod · 0.90

Calls

no outgoing calls

Tested by 1