1
0

Catch KeyErrorsg
Some checks are pending
Run Python tests (through Pytest) / Test (push) Waiting to run
Verify Python project can be installed, loaded and have version checked / Test (push) Waiting to run

This commit is contained in:
Jon Michael Aanes 2025-03-05 09:55:13 +01:00
parent 56dc16c93e
commit d0be5447fa

View File

@ -297,7 +297,10 @@ class FavroFuse(fuse.Fuse):
card_updated = self.formatter.parse_card_contents(contents_str)
self.favro_client.update_card_contents(card.card_id, card_updated)
self.wiped_cards.remove(file_system_item.seq_id)
try:
self.wiped_cards.remove(file_system_item.seq_id)
except KeyError:
pass
# Return amount written
return len(written_buffer)