Catch KeyErrorsg
This commit is contained in:
parent
56dc16c93e
commit
d0be5447fa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user