8000 Make _is_writable_dir more flexible to obscure failure modes · matplotlib/matplotlib@39470bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 39470bd

Browse files
committed
Make _is_writable_dir more flexible to obscure failure modes
1 parent 9edca5f commit 39470bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _is_writable_dir(p):
225225
t.write(b'1')
226226
finally:
227227
t.close()
228-
except OSError:
228+
except:
229229
return False
230230

231231
return True

0 commit comments

Comments
 (0)
0