Skip to content

Commit

Permalink
Merge pull request #1585 from girder/better-filter-zarr-warnings
Browse files Browse the repository at this point in the history
Better filter out zarr warnings
  • Loading branch information
manthey authored Jul 19, 2024
2 parents 594ff38 + 19686fc commit 56193ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/zarr/large_image_source_zarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
pass


warnings.filterwarnings('ignore', category=FutureWarning, module='zarr')

zarr = None


Expand All @@ -43,6 +41,8 @@ def _lazyImport():
if zarr is None:
try:
import zarr

warnings.filterwarnings('ignore', category=FutureWarning, module='.*zarr.*')
except ImportError:
msg = 'zarr module not found.'
raise TileSourceError(msg)
Expand Down

0 comments on commit 56193ce

Please sign in to comment.