From f542d9d9e079e9a08ac486ab4ac9f2260cd421f1 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Mon, 30 Sep 2024 14:23:12 -0400 Subject: [PATCH] Handle a variation in a bioformats exception --- CHANGELOG.md | 1 + sources/bioformats/large_image_source_bioformats/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1cf24123..18c732ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Changes - Handle a rasterio deprecation ([#1655](../../pull/1655)) +- Handle a variation in a bioformats exception ([#1656](../../pull/1656)) ### Bug Fixes diff --git a/sources/bioformats/large_image_source_bioformats/__init__.py b/sources/bioformats/large_image_source_bioformats/__init__.py index 9d913da13..55d28d164 100644 --- a/sources/bioformats/large_image_source_bioformats/__init__.py +++ b/sources/bioformats/large_image_source_bioformats/__init__.py @@ -82,7 +82,7 @@ def _monitor_thread(): source._bioimage = None except Exception: pass - except AssertionError: + except Exception: pass finally: if javabridge.get_env():