Skip to content

Commit 2fb4761

Browse files
committed
Fixed shell interpulation TypeError
check_output returns a byte string and we need a character (Unicode) string for replace to work
1 parent d2e47ce commit 2fb4761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skipper/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _normalize_config(config, normalized_config):
3636

3737
def _interpolate_env_vars(key):
3838
for match in findall(r'\$\(.+\)', key):
39-
output = check_output("echo " + match, shell=True).strip()
39+
output = check_output("echo " + match, shell=True).strip().decode("utf-8")
4040
if not output:
4141
raise ValueError(match)
4242
key = key.replace(match, output)

0 commit comments

Comments
 (0)