summaryrefslogtreecommitdiff
path: root/gitlab/exceptions.py
diff options
context:
space:
mode:
authorChristian <cgumpert@users.noreply.github.com>2017-03-21 06:50:20 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2017-03-21 06:50:20 +0100
commit22bf12827387cb1719bacae6c0c745cd768eee6c (patch)
tree80fd22ecc95ec6f41fb442a0ddf5d6b551822ee0 /gitlab/exceptions.py
parent8677f1c0250e9ab6b1e16da17d593101128cf057 (diff)
downloadgitlab-22bf12827387cb1719bacae6c0c745cd768eee6c.tar.gz
Provide API wrapper for cherry picking commits (#236)
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r--gitlab/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py
index 11bbe26..fc901d1 100644
--- a/gitlab/exceptions.py
+++ b/gitlab/exceptions.py
@@ -147,6 +147,10 @@ class GitlabTimeTrackingError(GitlabOperationError):
pass
+class GitlabCherryPickError(GitlabOperationError):
+ pass
+
+
def raise_error_from_response(response, error, expected_code=200):
"""Tries to parse gitlab error message from response and raises error.