osmcode / pyosmium

Python bindings for libosmium
https://osmcode.org/pyosmium
BSD 2-Clause "Simplified" License
318 stars 65 forks source link

Writer: roll back buffer after exceptions #213

Closed lonvia closed 2 years ago

lonvia commented 2 years ago

If an exception was caught on the Python side, then the item that caused the exception would remain in the buffer and be written out with the next valid item.

Fixes #212.