Dvorapa created this task.
Dvorapa added projects: Pywikibot-weblinkchecker.py, Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

These aren't issues with python3, but with weblinkchecker.
It only seems to check for requests.exceptions.InvalidURL whereas we should also be checking for requests.exceptions.SSLError and requests.exceptions.ReadTimeout

In fact, we should be doing requests.exceptions.RequestException - the error from which all request exceptions inherit.

I got one link which gave requests.exceptions.ConnectionError:...

PS : requests.exceptions.ConnectionError also inherits from requests.exceptions.RequestException

Steps to reproduce

  1. Run python pwb.py weblinkchecker

Expected behavior
weblinkchecker should output only informative messages for passed errors and warnings and print error tracebacks only for errors and warnings not passed

Current behavior
Currently on every SSLError, ReadTimeout, ConnectionError and maybe some more there is full traceback outputted. The final output can look really clutterred. Either make weblinkchecker work with errors like these (are they 404?) or at least make weblinkchecker not output the full error traceback on every error like these in any page (almost in every page on wiki).

Configuration
Python 3.6.4


TASK DETAIL
https://phabricator.wikimedia.org/T186131

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa
Cc: Aklapper, Dvorapa, pywikibot-bugs-list, AbdealiJK, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to