summaryrefslogtreecommitdiffstats
path: root/aurweb/exceptions.py
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-01-25 08:47:16 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-01-25 18:42:34 +0100
commit0e34dd6542afecc0890f77fbcb497fb5d8690d5b (patch)
tree4176567b17dda509e6c8794848b3d662e56877a4 /aurweb/exceptions.py
parent70db022aa8287c57a2ee03328ae893ba8b83b192 (diff)
downloadaur-0e34dd6542afecc0890f77fbcb497fb5d8690d5b.tar.gz
aur-0e34dd6542afecc0890f77fbcb497fb5d8690d5b.tar.xz
git-serve: Implement IP address bans
Currently, IP address bans affect the web interface only. Make sure they are honored in the SSH interface as well. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb/exceptions.py')
-rw-r--r--aurweb/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/aurweb/exceptions.py b/aurweb/exceptions.py
index 639f9e09..664db68c 100644
--- a/aurweb/exceptions.py
+++ b/aurweb/exceptions.py
@@ -6,6 +6,10 @@ class MaintenanceException(AurwebException):
pass
+class BannedException(AurwebException):
+ pass
+
+
class PermissionDeniedException(AurwebException):
def __init__(self, user):
msg = 'permission denied: {:s}'.format(user)