diff options
Diffstat (limited to 'lorrycontroller/gitlab.py')
-rw-r--r-- | lorrycontroller/gitlab.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lorrycontroller/gitlab.py b/lorrycontroller/gitlab.py index 55b8e4f..a426b0d 100644 --- a/lorrycontroller/gitlab.py +++ b/lorrycontroller/gitlab.py @@ -71,7 +71,7 @@ class Gitlab(object): try: group = self.gl.groups.get(group_name) except gitlab.GitlabGetError as e: - if e.error_message == '404 Not found': + if e.response_code == 404: group = self.gl.groups.create( {'name': group_name, 'path': group_name}) else: |