Raise a more informative error message for invalid attrs.
(zarr_obj, attrs)
| 644 | |
| 645 | |
| 646 | def _put_attrs(zarr_obj, attrs): |
| 647 | """Raise a more informative error message for invalid attrs.""" |
| 648 | try: |
| 649 | zarr_obj.attrs.put(attrs) |
| 650 | except TypeError as e: |
| 651 | raise TypeError("Invalid attribute in Dataset.attrs.") from e |
| 652 | return zarr_obj |
| 653 | |
| 654 | |
| 655 | class ZarrStore(AbstractWritableDataStore): |
no outgoing calls
no test coverage detected
searching dependent graphs…