summaryrefslogtreecommitdiff
path: root/gitlab/exceptions.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-02-05 15:37:39 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2018-02-05 15:38:08 +0100
commit6a87d38b0c5ffdfa9c78dcf5232ec78986010ce6 (patch)
tree29a1c2641cbc0c6a4ec405a008273ac464767404 /gitlab/exceptions.py
parentf276f13df50132554984f989b1d3d6c5fa8cdc01 (diff)
parentb861837b25bb45dbe40b035dff5f41898450e22b (diff)
downloadgitlab-6a87d38b0c5ffdfa9c78dcf5232ec78986010ce6.tar.gz
Update pipeline schedules code
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 9a423dd..5825d23 100644
--- a/gitlab/exceptions.py
+++ b/gitlab/exceptions.py
@@ -193,6 +193,10 @@ class GitlabHousekeepingError(GitlabOperationError):
pass
+class GitlabOwnershipError(GitlabOperationError):
+ pass
+
+
def raise_error_from_response(response, error, expected_code=200):
"""Tries to parse gitlab error message from response and raises error.