Skip to content

Commit 5fffaf7

Browse files
committed
fix ruff
1 parent 7a14af1 commit 5fffaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/services/contents/filemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _default_preferred_dir(self):
7777
path = Path(value)
7878
return path.relative_to(self.root_dir).as_posix()
7979
except ValueError:
80-
raise TraitError("%s is outside root contents directory" % value)
80+
raise TraitError("%s is outside root contents directory" % value) from None
8181
return ""
8282

8383
@validate("preferred_dir")

0 commit comments

Comments
 (0)