Improve gallery tests and fix behaviour if a provider errors
This commit is contained in:
parent
cc6caa39d7
commit
03d74bb044
2 changed files with 124 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue