XZise added a comment. Okay looking at it in https://phabricator.wikimedia.org/tag/pywikibot-compat/ the script is using `getHash()` which doesn't exist in https://phabricator.wikimedia.org/tag/pywikibot-core/. So it was changed to used `getFileSHA1Sum()` (see also T75024: Instance of 'FilePage' has no 'getHash' member <https://phabricator.wikimedia.org/T75024>) which, as far as I can tell, never returned `None` if the file was missing. Instead it got `None` for the image info and then did `['sha']` so it should raised an `AttributeError`.
TASK DETAIL https://phabricator.wikimedia.org/T105727 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: XZise Cc: gerritbot, XZise, Aklapper, Vituzzu, pywikibot-bugs-list, jayvdb, Malyacko, P.Copp _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
