jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/457861 )
Change subject: [IMPR] Show the exception message in async mode ......................................................................
[IMPR] Show the exception message in async mode
Bug: T203448 Change-Id: I00a8c23f72b10bf4f061d5d8b2ec06d534c2bff8 --- M pywikibot/page.py 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 611320c..0771788 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -111,6 +111,9 @@ except pywikibot.Error as edit_err: err = edit_err # edit_err will be deleted in the end of the scope link = self.title(as_link=True) + if do_async: + pywikibot.error('page {} not saved due to {}\n' + .format(link, err)) pywikibot.log('Error saving page %s (%s)\n' % (link, err), exc_info=True) if not callback and not do_async: