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

Skip to content

Commit 0f8305c

Browse files
committed
Fixed exception handling in _create_tmp_config_dir
1 parent a82de5c commit 0f8305c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,7 @@ def _create_tmp_config_dir():
548548
tempdir = os.path.join(tempdir, 'matplotlib-%s' % getpass.getuser())
549549
os.environ['MPLCONFIGDIR'] = tempdir
550550

551-
try:
552-
mkdirs(tempdir)
553-
except OSError:
554-
pass
551+
mkdirs(tempdir)
555552

556553
return tempdir
557554

0 commit comments

Comments
 (0)