diff options
author | 2012-04-04 00:07:50 +0200 | |
---|---|---|
committer | 2012-04-04 00:07:50 +0200 | |
commit | 3e551e6801a0031f1482ad5d9f30af9df78e9471 (patch) | |
tree | 9d28cc75691279ff75f079cd4e085e77241517af /pygithub3/requests/base.py | |
parent | :sparkles: Relase 0.2 :sparkles: (diff) | |
parent | Fix bug (diff) | |
download | python-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.tar.xz python-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.zip |
Gists service done
Diffstat (limited to 'pygithub3/requests/base.py')
-rw-r--r-- | pygithub3/requests/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygithub3/requests/base.py b/pygithub3/requests/base.py index 65bc558..03b0f8a 100644 --- a/pygithub3/requests/base.py +++ b/pygithub3/requests/base.py @@ -37,7 +37,7 @@ class Body(object): if attr_required not in parsed: raise ValidationError("'%s' attribute is required" % attr_required) - if not parsed[attr_required]: + if parsed[attr_required] is None: raise ValidationError("'%s' attribute can't be empty" % attr_required) return parsed |