Skip to content

Commit

Permalink
Merge pull request #41 from mjmaenpaa/gitlab_get_exception
Browse files Browse the repository at this point in the history
Gitlab.get() raised GitlabListError instead of GitlabGetError
  • Loading branch information
Gauvain Pocentek committed Oct 14, 2014
2 parents 9f134fc + ee54b3e commit 9736e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab.py
Expand Up @@ -232,8 +232,8 @@ def get(self, obj_class, id=None, **kwargs):
if k not in kwargs:
missing.append(k)
if missing:
raise GitlabListError('Missing attribute(s): %s' %
", ".join(missing))
raise GitlabGetError('Missing attribute(s): %s' %
", ".join(missing))

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

0 comments on commit 9736e0b

Please sign in to comment.