Merge pull request #374 from chr15m/issue-346-syntaxwarning

Fix #346 remaining SyntaxWarning with raw string
pull/376/head
Rui Carmo 2024-07-07 20:47:16 +01:00 zatwierdzone przez GitHub
commit 5d7bdad996
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -994,7 +994,7 @@ def spawn_app(app, deltas={}):
h.write(buffer)
# prevent broken config from breaking other deploys
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:
nginx_config_test = None
if nginx_config_test: