tools: Use subprocess.check_call where appropriate.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-08-17 15:50:19 -07:00 committed by Anders Kaseorg
parent c43629a222
commit 041dcdfbad
3 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,9 @@ if __name__ == "__main__":
args = parser.parse_args()
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:
data = json.load(f)

View File

@ -28,7 +28,9 @@ if __name__ == "__main__":
args = parser.parse_args()
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:
data = json.load(f)

View File

@ -18,7 +18,7 @@ TEST_DROPLET_SUBDOMAIN = "do"
def generate_ssh_keys() -> None:
subprocess.call(
subprocess.check_call(
["ssh-keygen", "-f", str(Path.home()) + "/.ssh/id_ed25519", "-P", "", "-t", "ed25519"]
)