diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-11-24 17:37:10 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-11-24 17:37:10 +0100 |
commit | 1fb1296c9191e57e109c4e5eb9504bce191a6ff1 (patch) | |
tree | 4f4ec9107f47dd518460636e539a5adc548880ca /gitlab/mixins.py | |
parent | 011274e7f94519d30dee59f5448215838d058e37 (diff) | |
download | gitlab-refactor/excpetion_msg.tar.gz |
Improve error message handling in exceptionsrefactor/excpetion_msg
* 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
Diffstat (limited to 'gitlab/mixins.py')
0 files changed, 0 insertions, 0 deletions