Skip to content

Commit

Permalink
fix typing issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
markbader committed Dec 18, 2024
1 parent ad35e9e commit 36aa94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webknossos/webknossos/dataset/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,8 @@ def _setup_mag(self, mag: Mag, path: Optional[Union[str, PathLike]] = None) -> N
ssl=SSL_CONTEXT,
)
)
if path
else path
if path is not None
else None
)
try:
self._mags[mag] = MagView(
Expand Down

0 comments on commit 36aa94b

Please sign in to comment.