From efefc0b1b6f443f1eb57041116402e5e38d8da4e Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Thu, 16 Jan 2025 08:50:34 -0600 Subject: [PATCH] Update src/pynwb/__init__.py Co-authored-by: Steph Prince <40640337+stephprince@users.noreply.github.com> --- src/pynwb/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pynwb/__init__.py b/src/pynwb/__init__.py index 74f0dadb6..7931322a8 100644 --- a/src/pynwb/__init__.py +++ b/src/pynwb/__init__.py @@ -585,8 +585,8 @@ def read_nwb(**kwargs): return NWBZarrIO.read_nwb(path=path) else: raise ValueError( - f"Unable to read file: '{path}'. The file exists but is not recognized as " - "either a valid HDF5 or Zarr NWB file. Please ensure the file contains valid NWB data." + f"Unable to read file: '{path}'. The file is not recognized as " + "either a valid HDF5 or Zarr NWB file. Please ensure the file exists and contains valid NWB data." ) except ImportError: raise ValueError(