Skip to content

Commit 7fd7a63

Browse files
committed
Merge pull request matplotlib#4165 from embray/patch-1
Make _is_writable_dir more flexible to obscure failure modes
2 parents ee086de + 39470bd commit 7fd7a63

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)