mirror of https://github.com/zulip/zulip.git
tools: Use subprocess.check_call where appropriate.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
c43629a222
commit
041dcdfbad
|
@ -32,7 +32,9 @@ if __name__ == "__main__":
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not args.no_generate:
|
if not args.no_generate:
|
||||||
subprocess.call(["./manage.py", "makemessages", "--locale", "en"], stderr=subprocess.STDOUT)
|
subprocess.check_call(
|
||||||
|
["./manage.py", "makemessages", "--locale", "en"], stderr=subprocess.STDOUT
|
||||||
|
)
|
||||||
|
|
||||||
with open("locale/en/translations.json") as f:
|
with open("locale/en/translations.json") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
|
@ -28,7 +28,9 @@ if __name__ == "__main__":
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if not args.no_generate:
|
if not args.no_generate:
|
||||||
subprocess.call(["./manage.py", "makemessages", "--locale", "en"], stderr=subprocess.STDOUT)
|
subprocess.check_call(
|
||||||
|
["./manage.py", "makemessages", "--locale", "en"], stderr=subprocess.STDOUT
|
||||||
|
)
|
||||||
|
|
||||||
with open("locale/en/translations.json") as f:
|
with open("locale/en/translations.json") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
|
@ -18,7 +18,7 @@ TEST_DROPLET_SUBDOMAIN = "do"
|
||||||
|
|
||||||
|
|
||||||
def generate_ssh_keys() -> None:
|
def generate_ssh_keys() -> None:
|
||||||
subprocess.call(
|
subprocess.check_call(
|
||||||
["ssh-keygen", "-f", str(Path.home()) + "/.ssh/id_ed25519", "-P", "", "-t", "ed25519"]
|
["ssh-keygen", "-f", str(Path.home()) + "/.ssh/id_ed25519", "-P", "", "-t", "ed25519"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue