summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 2a33dc5..4088661 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -99,6 +99,8 @@ class BaseManager(object):
args = self._set_parent_args(**kwargs)
if not self.obj_cls.canGet:
raise NotImplementedError
+ if id is None and self.obj_cls.getRequiresId is True:
+ raise ValueError('The id argument must be defined.')
return self.obj_cls.get(self.gitlab, id, **args)
def list(self, **kwargs):