diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-02-04 22:39:21 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-02-04 22:39:21 +0100 |
commit | e387de528ad21766747b91bb7e1cd91f6e4642b5 (patch) | |
tree | 4492fc98523188635c468a6a5b7bd8f547d0e5c4 /gitlab/exceptions.py | |
parent | 942468d344eac2a70f73ed69a43c27a87baf78db (diff) | |
download | gitlab-e387de528ad21766747b91bb7e1cd91f6e4642b5.tar.gz |
Add support for user block/unblock
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r-- | gitlab/exceptions.py | 8 |
1 files changed, 8 insertions, 0 deletions
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. |