jayvdb added a comment.

https://dpaste.de/aq6u is `weblinkchecker.py`, which is a separate but related 
bug : https://phabricator.wikimedia.org/T71204.

Each script in `scripts/` is separate from the others.

This task is about `scripts/reflinks.py`, which does not set a user agent at 
all.

To check if a package is installed, add the following to the top of the module:

  try:
       import browseragent
  except ImportError as e
       browseragent = e

Later in code ,

  if not isinstance(browseragent, ImportError):
       # use browseragent package


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

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

To: MtDu, jayvdb
Cc: MtDu, Nemo_bis, 8ohit.dua, jayvdb, Aklapper, pywikibot-bugs-list, Rubin16, 
Jay8g



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

Reply via email to