From e5915072c0e1cf14cf1edf63bf4388c797a5aaf3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Mon, 10 Feb 2014 20:17:48 +0100 Subject: [PATCH] Don't crash if cwd==None --- fdroidserver/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 330b1271..0655e33f 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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: -- 2.30.2