Skip to content

Commit ee54b3e

Browse files
committed
Gitlab.get() raised GitlabListError instead of GitlabGetError
1 parent 9f134fc commit ee54b3e

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)