Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Dec 7, 2022
1 parent 7b2a20e commit 6eb0c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/services/contents/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _default_preferred_dir(self):
path = Path(value)
return path.relative_to(self.root_dir).as_posix()
except ValueError:
raise TraitError("%s is outside root contents directory" % value)
raise TraitError("%s is outside root contents directory" % value) from None
return ""

@validate("preferred_dir")
Expand Down

0 comments on commit 6eb0c47

Please sign in to comment.