tatuylonen / wikitextprocessor

Python package for WikiMedia dump processing (Wiktionary, Wikipedia etc). Wikitext parsing, template expansion, Lua module execution. For data extraction, bulk syntax checking, error detection, and offline formatting.
Other
90 stars 23 forks source link

Use connection context manager in `get_entity_data()` #292

Closed xxyzz closed 1 month ago

xxyzz commented 1 month ago

This is a database is locked in the ru edition log from page "হৃদয়": LUA error in #invoke('Wdl-bn', 'all', 'L301993') parent None

Use context manager to automatically commit should fix this racing bug.