jayvdb added a comment. As seen in https://phabricator.wikimedia.org/T104761, the weblib API is problematic as it returns `None` for failure, rather than using exceptions to indicate failure.
A new package has arrived on the scene which may help. https://github.com/pastpages/django-memento-framework https://pypi.python.org/pypi/django-memento-framework Perhaps we can work with the creators to create a basic memento python library. I'll shoot palewire/Ben Welsh an email. TASK DETAIL https://phabricator.wikimedia.org/T85001 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: jayvdb, Aklapper, pywikibot-bugs-list, Malyacko, P.Copp _______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs