Improve gallery tests and fix behaviour if a provider errors

This commit is contained in:
Julian Stirling 2026-06-21 20:03:48 +01:00
parent cc6caa39d7
commit 03d74bb044
2 changed files with 124 additions and 1 deletions

View file

@ -111,4 +111,7 @@ class GalleryThing(lt.Thing):
def delete_all_data(self) -> None:
"""Delete all the gallery data on this microscope."""
for thing in self.gallery_providing_things.values():
thing.delete_all_gallery_items()
try:
thing.delete_all_gallery_items()
except Exception as e:
self.logger.exception(e)