From 792828aa660b0b117b5e53b8ae0ee9770e6ea81f 2013-08-06 21:19:19 From: Jonathan Frederic Date: 2013-08-06 21:19:19 Subject: [PATCH] Fix, don't try to create '' directories --- diff --git a/IPython/nbconvert/writers/files.py b/IPython/nbconvert/writers/files.py index c3d2656..1e75334 100644 --- a/IPython/nbconvert/writers/files.py +++ b/IPython/nbconvert/writers/files.py @@ -48,7 +48,7 @@ class FilesWriter(WriterBase): def _makedir(self, path): """Make a directory if it doesn't already exist""" - if not os.path.isdir(path): + if path and not os.path.isdir(path): self.log.info("Making directory %s", path) os.makedirs(path)