changeset 14:5c26fc1adbac draft

minor fix in automatic directory creation Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author Changaco <changaco ατ changaco δοτ net>
date Mon, 16 Apr 2012 14:40:51 +0200
parents b960713823a7
children 68a9b24a182a
files feed-push
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/feed-push
+++ b/feed-push
@@ -220,7 +220,7 @@ class Apply(argparse.Action):
 def MakeDirs(next_type=None):
     def f(s):
         d = dirname(s)
-        if not isdir(d):
+        if d and not isdir(d):
             try:
                 os.makedirs(d)
             except OSError as e: