We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 279704f commit 72e783dCopy full SHA for 72e783d
gitlab/mixins.py
@@ -39,6 +39,8 @@ def get(self, id, lazy=False, **kwargs):
39
GitlabAuthenticationError: If authentication is not correct
40
GitlabGetError: If the server cannot perform the request
41
"""
42
+ if not isinstance(id, int):
43
+ id = id.replace('/', '%2F')
44
path = '%s/%s' % (self.path, id)
45
if lazy is True:
46
return self._obj_cls(self, {self._obj_cls._id_attr: id})
0 commit comments