Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Dec 12, 2024
1 parent 761378a commit 578dba2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hdmf/spec/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ def __init__(self, **kwargs):
default_name = getargs('default_name', kwargs)
if default_name:
if "/" in default_name:
raise ValueError(f"Default name '{default_name}' is invalid. Names of Groups and Datasets cannot contain '/'")
raise ValueError(
f"Default name '{default_name}' is invalid. Names of Groups and Datasets cannot contain '/'"
)
if name is not None:
warn("found 'default_name' with 'name' - ignoring 'default_name'")
else:
Expand Down

0 comments on commit 578dba2

Please sign in to comment.