aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/base.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-06-16 13:38:24 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-06-16 13:38:28 +0200
commite383e91973bdbf0b6b77c739249225e3a85b9f24 (patch)
treed963ff0c1f10896f29a32ee90ff97f4ecf7b6266 /pygithub3/requests/base.py
parentRemove list_labels from repo service (diff)
downloadpython-github3-e383e91973bdbf0b6b77c739249225e3a85b9f24.tar.xz
python-github3-e383e91973bdbf0b6b77c739249225e3a85b9f24.zip
Tests on services.issues working
Also fix some bugs
Diffstat (limited to '')
-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: