Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39470bd

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)