Skip to content

Commit c268e91

Browse files
authored
Suppress any exception in _do_i_own shortcut (#335)
closes #334
1 parent c7d0573 commit c268e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_core/paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _do_i_own(path: str) -> bool:
8080
# not always implemented or available
8181
try:
8282
return p.owner() == os.getlogin()
83-
except (NotImplementedError, OSError):
83+
except Exception:
8484
pass
8585

8686
if hasattr(os, 'geteuid'):

0 commit comments

Comments
 (0)