Skip to content

Commit 9736e0b

Browse files
author
Gauvain Pocentek
committed
Merge pull request #41 from mjmaenpaa/gitlab_get_exception
Gitlab.get() raised GitlabListError instead of GitlabGetError
2 parents 9f134fc + ee54b3e commit 9736e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def get(self, obj_class, id=None, **kwargs):
232232
if k not in kwargs:
233233
missing.append(k)
234234
if missing:
235-
raise GitlabListError('Missing attribute(s): %s' %
236-
", ".join(missing))
235+
raise GitlabGetError('Missing attribute(s): %s' %
236+
", ".join(missing))
237237

238238
url = obj_class._url % _sanitize_dict(kwargs)
239239
if id is not None:

0 commit comments

Comments
 (0)