John Vandenberg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/197813

Change subject: Dont pass None as api param value
......................................................................

Dont pass None as api param value

Change-Id: I43cb53e4c61182031ef25a14589cd10b1f799bbd
---
M pywikibot/data/api.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/13/197813/1

diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 741a75b..7f4210e 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -996,8 +996,8 @@
                     value = values[0]
                     if value is True:
                         values = ['']
-                    elif value is False:
-                        # False booleans are not in the http URI
+                    elif value is False or value is None:
+                        # False and None are not included in the http URI
                         continue
                 iterator = iter(values)
             value = u'|'.join(self._format_value(value) for value in iterator)

-- 
To view, visit https://gerrit.wikimedia.org/r/197813
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I43cb53e4c61182031ef25a14589cd10b1f799bbd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to