Ivan-r added a comment.
In T417961#11635430 <https://phabricator.wikimedia.org/T417961#11635430>, @Xqt wrote: > Very strange because `file_extension` property was introduced with Pywikibot 8.4 already. Could you please try the following code snippet (exprecting you have a `minecraft_family` file: > > py -m pwb shell > >>> site = pywikibot.Site('minecraft:ru') > >>> site.file_extensions > > The following is expected then: > > ['flac', 'gif', 'ico', 'jpeg', 'jpg', 'mkv', 'mov', 'mp3', 'mp4', 'odm', 'oga', 'ogg', 'pdf', 'png', 'svg', 'wav', 'webm', 'webp'] >>> site = pywikibot.Site('mcw:ru') >>> site.file_extensions Traceback (most recent call last): File "<console>", line 1, in <module> File "C:\Users\DragonMsi\Documents\pywikibot\pywikibot\site\_basesite.py", line 218, in __getattr__ raise AttributeError(f'{type(self).__name__} instance has no ' f'attribute {name!r}') from None AttributeError: APISite instance has no attribute 'file_extensions'. Did you mean: 'has_extension'? TASK DETAIL https://phabricator.wikimedia.org/T417961 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
