jayvdb added a comment.

The harder solution is to detect the transient error in archive.org , and raise 
an exception.
If weblib methods did raise an exception, that would break the weblib API, as 
currently users expect `None` for failure.

To workaround that, we could introduce new function names that raise an 
exception, and the old function names catch the exception and return None.

`scripts/weblinkchecker.py` should be updated to use the new function names.

However, rather than patching weblib, I think the better solution is to simply 
push weblib out of pywikibot into a new package with a new design.  e.g. 
https://phabricator.wikimedia.org/T85001


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

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

To: VcamX, jayvdb
Cc: gerritbot, XZise, Aklapper, jayvdb, pywikibot-bugs-list, Malyacko, P.Copp



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to