Xqt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/343445 )

Change subject: [bugfix] Use default summary when summary value does not 
contain a string
......................................................................

[bugfix] Use default summary when summary value does not contain a string

Bug: T160823
Change-Id: I563b21216b2fb6ee46cdc52134ecabad14abfa19
---
M pywikibot/bot.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/45/343445/1

diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index a5aba1b..12e8701 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -1699,7 +1699,7 @@
 
     def put_current(self, *args, **kwargs):
         """Defining a summary if not already defined and then call original."""
-        if 'summary' not in kwargs:
+        if 'summary' not in kwargs or not kwargs['summary']:
             from pywikibot import i18n
             if self.summary_key is None:
                 raise ValueError('The summary_key must be set.')

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

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

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

Reply via email to