diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 9dd05af80..e01691a9a 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -39,6 +39,8 @@ def get(self, id, lazy=False, **kwargs): GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the server cannot perform the request """ + if not isinstance(id, int): + id = id.replace('/', '%2F') path = '%s/%s' % (self.path, id) if lazy is True: return self._obj_cls(self, {self._obj_cls._id_attr: id})