Skip to content

Commit f90ec95

Browse files
committed
convert all items to a str in ' '.join(...)
1 parent 797f900 commit f90ec95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Utilities/helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ def mkdir_p(path):
6565
def call(cmd, cwd=None, verbose=False):
6666
"""Calls a subprocess."""
6767
cwd = cwd or pathlib.Path.cwd()
68-
logging.info("executing command >>> %r with cwd %s", " ".join(cmd), cwd)
68+
logging.info("executing command >>> %r with cwd %s", " ".join([str(c) for c in cmd]), cwd)
6969
try:
7070
subprocess.check_call(cmd, cwd=cwd)
7171
except subprocess.CalledProcessError as cpe:
72-
logging.debug("executing command >>> %r with cwd %s", " ".join(cmd), cwd)
72+
logging.debug("executing command >>> %r with cwd %s", " ".join([str(c) for c in cmd]), cwd)
7373
logging.error("Process failure: %s", str(cpe))
7474
raise cpe
7575

7676

7777
def call_output(cmd, cwd=None, stderr=False, verbose=False):
7878
"""Calls a subprocess for its return data."""
7979
cwd = cwd or pathlib.Path.cwd()
80-
logging.info("executing command >>> %r with cwd %s", " ".join(cmd), cwd)
80+
logging.info("executing command >>> %r with cwd %s", " ".join([str(c) for c in cmd]), cwd)
8181
try:
8282
return subprocess.check_output(
8383
cmd,
@@ -86,6 +86,6 @@ def call_output(cmd, cwd=None, stderr=False, verbose=False):
8686
universal_newlines=True,
8787
).strip()
8888
except subprocess.CalledProcessError as cpe:
89-
logging.debug("executing command >>> %r with cwd %s", " ".join(cmd), cwd)
89+
logging.debug("executing command >>> %r with cwd %s", " ".join([str(c) for c in cmd]), cwd)
9090
logging.error("Process failure: %s", str(cpe))
9191
raise cpe

0 commit comments

Comments
 (0)