Skip to content

Commit 8764903

Browse files
author
Gauvain Pocentek
committed
Make the delete() method handle / in ids
Replace the / with the HTTP %2F as is done with other methods. Closes #337
1 parent ac430a3 commit 8764903

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitlab/mixins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ def delete(self, id, **kwargs):
235235
GitlabAuthenticationError: If authentication is not correct
236236
GitlabDeleteError: If the server cannot perform the request
237237
"""
238+
import pdb; pdb.set_trace()
239+
if not isinstance(id, int):
240+
id = id.replace('/', '%2F')
238241
path = '%s/%s' % (self.path, id)
239242
self.gitlab.http_delete(path, **kwargs)
240243

0 commit comments

Comments
 (0)