jenkins-bot has submitted this change and it was merged. ( 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(-)
Approvals: Lokal Profil: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index a5aba1b..1e0135a 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 not kwargs.get('summary'): from pywikibot import i18n if self.summary_key is None: raise ValueError('The summary_key must be set.')
pywikibot-commits@lists.wikimedia.org