diff options
Diffstat (limited to 'pygithub3/core')
-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)) |