diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-16 06:53:49 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-16 06:53:49 +0100 |
commit | 084b905f78046d894fc76d3ad545689312b94bb8 (patch) | |
tree | 19c3ef5d772f3249b1d140c6b339bd78612b6bc1 /gitlab/mixins.py | |
parent | 9ede6529884e850532758ae218465c1b7584c2d4 (diff) | |
download | gitlab-084b905f78046d894fc76d3ad545689312b94bb8.tar.gz |
Revert "Add unit tests for mixin exceptions"
This reverts commit 4ee139ad5c58006da1f9af93fdd4e70592e6daa0.
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index c9243ed..3d6e321 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -113,12 +113,7 @@ class GetFromListMixin(ListMixin): GitlabAuthenticationError: If authentication is not correct GitlabGetError: If the server cannot perform the request """ - try: - gen = self.list() - except exc.GitlabListError: - raise exc.GitlabGetError(response_code=404, - error_message="Not found") - + gen = self.list() for obj in gen: if str(obj.get_id()) == str(id): return obj @@ -387,7 +382,7 @@ class SubscribableMixin(object): class TodoMixin(object): @cli.register_custom_action(('ProjectIssue', 'ProjectMergeRequest')) - @exc.on_http_error(exc.GitlabTodoError) + @exc.on_http_error(exc.GitlabHttpError) def todo(self, **kwargs): """Create a todo associated to the object. |