aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/issues
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/issues
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 'pygithub3/requests/issues')
-rw-r--r--pygithub3/requests/issues/milestones.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygithub3/requests/issues/milestones.py b/pygithub3/requests/issues/milestones.py
index f695e1f..4093c7e 100644
--- a/pygithub3/requests/issues/milestones.py
+++ b/pygithub3/requests/issues/milestones.py
@@ -24,8 +24,9 @@ class Create(Request):
def clean_body(self): # Test if API normalize it
state = self.body.get('state', '')
- if state.lower() not in ('open', 'closed'):
+ if state and state.lower() not in ('open', 'closed'):
raise ValidationError("'state' must be 'open' or 'closed'")
+ return self.body
class Update(Create):