chiark / gitweb /
Don't crash if cwd==None
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 10 Feb 2014 19:17:48 +0000 (20:17 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 10 Feb 2014 19:17:48 +0000 (20:17 +0100)
fdroidserver/common.py

index 330b1271c8f89ac72d89af72586ed943188b9be4..0655e33f14bf9cfea1e703dac4d8e7743411efda 100644 (file)
@@ -1385,7 +1385,8 @@ def FDroidPopen(commands, cwd=None, output=True):
     :returns: A PopenResult.
     """
 
-    cwd = os.path.normpath(cwd)
+    if cwd:
+        cwd = os.path.normpath(cwd)
 
     if output:
         if cwd: