aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/requests/base.py')
-rw-r--r--pygithub3/requests/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygithub3/requests/base.py b/pygithub3/requests/base.py
index c4fe5cc..6088bae 100644
--- a/pygithub3/requests/base.py
+++ b/pygithub3/requests/base.py
@@ -27,8 +27,8 @@ class Body(object):
def parse(self):
""" Parse body with schema-required rules """
if not hasattr(self.content, 'items'):
- raise ValidationError("'%s' needs a content dictionary"
- % self.__class__.__name__)
+ raise ValidationError("It needs a content dictionary (%s)" % (
+ self.content, ))
parsed = dict([(key, self.content[key]) for key in self.schema
if key in self.content])
for attr_required in self.required: