jenkins-bot merged this change.
[IMPR] Show the exception message in async mode
Bug: T203448
Change-Id: I00a8c23f72b10bf4f061d5d8b2ec06d534c2bff8
---
M pywikibot/page.py
1 file changed, 3 insertions(+), 0 deletions(-)
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:
To view, visit change 457861. To unsubscribe, or for help writing mail filters, visit settings.