Fix the regression occured after 08ad608
Fix the regression occured after 08ad608

`pywikibot` is only available if RuntimeError does not occure.

Bug: T216829
Change-Id: Iaf554db40e851f8e379ff42a0b28a4b5955873db

PersianWikipedia/pywikibot-core,wikimedia/pywikibot-core,wikimedia/pywikibot-core