summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 8852a1e..a2f6153 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -2720,14 +2720,14 @@ class ProjectTag(ObjectDeleteMixin, RESTObject):
path, post_data=data, **kwargs
)
except exc.GitlabHttpError as e:
- raise exc.GitlabCreateError(e.response_code, e.error_message)
+ raise exc.GitlabCreateError(e.response_code, e.error_message) from e
else:
try:
server_data = self.manager.gitlab.http_put(
path, post_data=data, **kwargs
)
except exc.GitlabHttpError as e:
- raise exc.GitlabUpdateError(e.response_code, e.error_message)
+ raise exc.GitlabUpdateError(e.response_code, e.error_message) from e
self.release = server_data