Skip to content

Commit

Permalink
exception message: mimic v3 API
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Sep 19, 2017
1 parent e35563e commit 05da7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/__init__.py
Expand Up @@ -687,7 +687,7 @@ def sanitized_url(url):

try:
error_message = result.json()['message']
except Exception as e:
except (KeyError, ValueError, TypeError):
error_message = result.content

if result.status_code == 401:
Expand Down

0 comments on commit 05da7ba

Please sign in to comment.