diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2013-05-19 06:36:57 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2013-05-19 06:36:57 +0200 |
commit | a04a5a5fda2e2400e56d2f05c2d3530728d73367 (patch) | |
tree | e7166e348992741d67d2f1f34adb828a13c0a64d /gitlab.py | |
parent | 34e4304812c29f9ac3eec8bef69d6cf359fff6ae (diff) | |
download | gitlab-a04a5a5fda2e2400e56d2f05c2d3530728d73367.tar.gz |
return explicit error message on 404
Diffstat (limited to 'gitlab.py')
-rw-r--r-- | gitlab.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -242,6 +242,8 @@ class Gitlab(object): return r.json() elif r.status_code == 401: raise GitlabAuthenticationError(r.json()['message']) + elif r.status_code == 404: + raise GitlabGetError("Object doesn't exist") else: raise GitlabGetError('%d: %s' % (r.status_code, r.text)) |