Skip to content

Commit

Permalink
fix handling of description=None
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Nov 25, 2024
1 parent 3382ad7 commit 715d498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 715d498

Please sign in to comment.