kopia lustrzana https://github.com/piku/piku
Merge pull request #374 from chr15m/issue-346-syntaxwarning
Fix #346 remaining SyntaxWarning with raw stringpull/376/head
commit
5d7bdad996
2
piku.py
2
piku.py
|
@ -994,7 +994,7 @@ def spawn_app(app, deltas={}):
|
||||||
h.write(buffer)
|
h.write(buffer)
|
||||||
# prevent broken config from breaking other deploys
|
# prevent broken config from breaking other deploys
|
||||||
try:
|
try:
|
||||||
nginx_config_test = str(check_output("nginx -t 2>&1 | grep -E '{}\.conf:[0-9]+$'".format(app), env=environ, shell=True))
|
nginx_config_test = str(check_output(r"nginx -t 2>&1 | grep -E '{}\.conf:[0-9]+$'".format(app), env=environ, shell=True))
|
||||||
except Exception:
|
except Exception:
|
||||||
nginx_config_test = None
|
nginx_config_test = None
|
||||||
if nginx_config_test:
|
if nginx_config_test:
|
||||||
|
|
Ładowanie…
Reference in New Issue