Skip to content

Commit eafecd9

Browse files
committed
soften error to warning
1 parent d6ce064 commit eafecd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zarr/storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import multiprocessing
1919
from threading import Lock, RLock
2020
import glob
21+
import warnings
2122

2223

2324
import numpy as np
@@ -346,7 +347,7 @@ def _init_array_metadata(store, shape, chunks=None, dtype=None, compressor='defa
346347
else:
347348
filters_config.insert(0, object_codec.get_config())
348349
elif object_codec is not None:
349-
raise ValueError('an object_codec is only needed for object arrays')
350+
warnings.warn('an object_codec is only needed for object arrays')
350351

351352
# use null to indicate no filters
352353
if not filters_config:

0 commit comments

Comments
 (0)