Skip to content

Commit 69281ba

Browse files
committed
Fix bug: Validating body in requests
1 parent 82776a8 commit 69281ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygithub3/requests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def parse(self):
3737
if attr_required not in parsed:
3838
raise ValidationError("'%s' attribute is required" %
3939
attr_required)
40-
if not parsed[attr_required]:
40+
if parsed[attr_required] is None:
4141
raise ValidationError("'%s' attribute can't be empty" %
4242
attr_required)
4343
return parsed

0 commit comments

Comments
 (0)