We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b928c9f commit 8a8ec09Copy full SHA for 8a8ec09
pygithub3/core/errors.py
@@ -28,8 +28,7 @@ def error_400(self):
28
29
def error_422(self):
30
errors = self.debug.get('errors', ())
31
- errors = ['Resource: {resource}: {field} => {message} ({code})'.format(
32
- **error)
+ errors = ['Resource: {resource}: {field} => {code}'.format(**error)
33
for error in errors]
34
raise UnprocessableEntity(
35
'422 - %s %s' % (self.debug.get('message'), errors))
0 commit comments