jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/505636 )
Change subject: [IMPR] Print the uri in error_handling_callback ......................................................................
[IMPR] Print the uri in error_handling_callback
- Print the called uri in error_handling_callback when the request fails with an exception. - remove print_function import which is not in this module
Change-Id: If5a7d8b3db1c442212367fcdb75fd2824826885f --- M pywikibot/comms/http.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py index fc1a990..fb11106 100644 --- a/pywikibot/comms/http.py +++ b/pywikibot/comms/http.py @@ -16,8 +16,7 @@ # # Distributed under the terms of the MIT license. # -from __future__ import (absolute_import, division, - print_function, unicode_literals) +from __future__ import absolute_import, division, unicode_literals
__docformat__ = 'epytext' @@ -409,6 +408,7 @@
# if all else fails if isinstance(request.data, Exception): + error('An error occurred for uri ' + request.uri) raise request.data
if request.status == 504: