summaryrefslogtreecommitdiff
path: root/gitlab/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/config.py')
-rw-r--r--gitlab/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/config.py b/gitlab/config.py
index 2272dd3..1b665ed 100644
--- a/gitlab/config.py
+++ b/gitlab/config.py
@@ -60,18 +60,18 @@ class GitlabConfigParser(object):
if self.gitlab_id is None:
try:
self.gitlab_id = self._config.get("global", "default")
- except Exception:
+ except Exception as e:
raise GitlabIDError(
"Impossible to get the gitlab id (not specified in config file)"
- )
+ ) from e
try:
self.url = self._config.get(self.gitlab_id, "url")
- except Exception:
+ except Exception as e:
raise GitlabDataError(
"Impossible to get gitlab informations from "
"configuration (%s)" % self.gitlab_id
- )
+ ) from e
self.ssl_verify = True
try: