From: W. Trevor King Date: Fri, 16 Mar 2012 14:42:02 +0000 (-0400) Subject: Don't try and create a directory with a blank string. X-Git-Tag: v0.2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=237c9accf0def08b177e55b5262840a48241d606;p=h5config.git Don't try and create a directory with a blank string. --- 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)