From 715d49887a7a9c9e14eec6a346e3f8d36f046a80 Mon Sep 17 00:00:00 2001 From: Ben Dichter Date: Mon, 25 Nov 2024 09:28:37 -0500 Subject: [PATCH] fix handling of description=None --- src/nwbinspector/checks/_general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nwbinspector/checks/_general.py b/src/nwbinspector/checks/_general.py index 09acc6c1..1eefd1a6 100644 --- a/src/nwbinspector/checks/_general.py +++ b/src/nwbinspector/checks/_general.py @@ -27,7 +27,7 @@ def check_description(neurodata_object: object) -> Optional[InspectorMessage]: return None description = neurodata_object.description - if type(description) not in (str, None): + if description is not None and type(description) is not str: return None if description is None or description.strip(" ") == "": return InspectorMessage(message="Description is missing.")