We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 257b483 commit 4e387a4Copy full SHA for 4e387a4
jupyter_core/application.py
@@ -167,10 +167,10 @@ def migrate_config(self) -> None:
167
try: # let's see if we can open the marker file
168
# for reading and updating (writing)
169
f_marker = Path.open(Path(self.config_dir, "migrated"), "r+")
170
- except PermissionError: # not readable and/or writable
171
- return # so let's give up migration in such an environment
172
except FileNotFoundError: # cannot find the marker file
173
pass # that means we have not migrated yet, so continue
+ except OSError: # not readable and/or writable
+ return # so let's give up migration in such an environment
174
else: # if we got here without raising anything,
175
# that means the file exists
176
f_marker.close()
0 commit comments