Raised when source IP is not in the allow list.
| 36 | |
| 37 | |
| 38 | class 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 |
no outgoing calls