Improve error message handling in exceptions · python-gitlab/python-gitlab@1fb1296 · GitHub
Skip to content

Commit 1fb1296

Browse files
author
Gauvain Pocentek
committed
Improve error message handling in exceptions
* Depending on the request Gitlab has a 'message' or 'error' attribute in the json data, handle both * Add some consistency by converting messages to unicode or str for exceptions (depending on the python version) Closes #616
1 parent 011274e commit 1fb1296

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

gitlab/__init__.py

Lines changed: 6 additions & 2 deletions

gitlab/exceptions.py

Lines changed: 6 additions & 1 deletion

0 commit comments

Comments
 (0)