1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

Don't crash if cwd==None

This commit is contained in:
Daniel Martí 2014-02-10 20:17:48 +01:00
parent 6e89e68f76
commit e5915072c0

View File

@ -1385,7 +1385,8 @@ def FDroidPopen(commands, cwd=None, output=True):
:returns: A PopenResult. :returns: A PopenResult.
""" """
cwd = os.path.normpath(cwd) if cwd:
cwd = os.path.normpath(cwd)
if output: if output:
if cwd: if cwd: