From 237c9accf0def08b177e55b5262840a48241d606 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 16 Mar 2012 10:42:02 -0400 Subject: [PATCH] Don't try and create a directory with a blank string. --- h5config/storage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5config/storage/__init__.py b/h5config/storage/__init__.py index 13992e2..00d6cca 100644 --- a/h5config/storage/__init__.py +++ b/h5config/storage/__init__.py @@ -52,5 +52,5 @@ class FileStorage (Storage): def _create_basedir(self, filename): dirname = _os_path.dirname(filename) - if not _os_path.isdir(dirname): + if dirname and not _os_path.isdir(dirname): _os.makedirs(dirname) -- 2.26.2