diff options
author | 2012-03-04 23:57:07 +0100 | |
---|---|---|
committer | 2012-03-04 23:57:07 +0100 | |
commit | 8a8ec09eddc85a1991eceaa31565d5bb185b1b6f (patch) | |
tree | ae4c40aa8fc34409e5576e1034f623e511ef33e6 /pygithub3/core/errors.py | |
parent | Fix requests with invalid config precedence (diff) | |
download | python-github3-8a8ec09eddc85a1991eceaa31565d5bb185b1b6f.tar.xz python-github3-8a8ec09eddc85a1991eceaa31565d5bb185b1b6f.zip |
Fix 422 message
Diffstat (limited to 'pygithub3/core/errors.py')
-rw-r--r-- | pygithub3/core/errors.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pygithub3/core/errors.py b/pygithub3/core/errors.py index ae7bcc4..4a95df0 100644 --- a/pygithub3/core/errors.py +++ b/pygithub3/core/errors.py @@ -28,8 +28,7 @@ class GithubError(object): def error_422(self): errors = self.debug.get('errors', ()) - errors = ['Resource: {resource}: {field} => {message} ({code})'.format( - **error) + errors = ['Resource: {resource}: {field} => {code}'.format(**error) for error in errors] raise UnprocessableEntity( '422 - %s %s' % (self.debug.get('message'), errors)) |