From 39470bd8ca341b08fb3583732ad311ca1f522daf Mon Sep 17 00:00:00 2001 From: Erik Bray Date: Wed, 25 Feb 2015 12:41:08 -0500 Subject: [PATCH] Make _is_writable_dir more flexible to obscure failure modes --- lib/matplotlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 2c00a2ff13be..7f806098b7eb 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -225,7 +225,7 @@ def _is_writable_dir(p): t.write(b'1') finally: t.close() - except OSError: + except: return False return True