From e387de528ad21766747b91bb7e1cd91f6e4642b5 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Thu, 4 Feb 2016 22:39:21 +0100 Subject: Add support for user block/unblock --- gitlab/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gitlab/exceptions.py') diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py index 74e6137..1b5ec6a 100644 --- a/gitlab/exceptions.py +++ b/gitlab/exceptions.py @@ -83,6 +83,14 @@ class GitlabBuildRetryError(GitlabOperationError): pass +class GitlabBlockError(GitlabOperationError): + pass + + +class GitlabUnblockError(GitlabOperationError): + pass + + def raise_error_from_response(response, error, expected_code=200): """Tries to parse gitlab error message from response and raises error. -- cgit v1.2.1