Fix docs build

This commit is contained in:
Victor Zverovich 2021-06-03 17:29:46 -07:00
parent 0eef389ddb
commit d4fbeacc33

View File

@ -53,6 +53,6 @@ if call(['git', 'diff-index', '--quiet', 'HEAD'], cwd=repo):
cmd += ' https://$KEY@github.com/fmtlib/fmtlib.github.io.git master' cmd += ' https://$KEY@github.com/fmtlib/fmtlib.github.io.git master'
p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, cwd=repo) p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, cwd=repo)
# Print the output without the key. # Print the output without the key.
print(p.communicate()[0].replace(os.environ['KEY'], '$KEY')) print(p.communicate()[0].decode('utf-8').replace(os.environ['KEY'], '$KEY'))
if p.returncode != 0: if p.returncode != 0:
raise subprocess.CalledProcessError(p.returncode, cmd) raise subprocess.CalledProcessError(p.returncode, cmd)