Check output for curl commands

This commit is contained in:
Nate Bowman
2026-10-08 18:36:32 -04:00
parent 17ccd0bab7
commit 5e0a74f8ce
2 changed files with 13 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
import json
import logging
import pandas as pd
import subprocess
from website import helpers
@@ -18,8 +17,7 @@ def _download_max_players() -> None:
f" '{config.share['uri']}'"
)
# TODO error check
subprocess.run(cmd, shell=True)
helpers.run_and_log_cmd(cmd)
def _download_games(user: str) -> None:
@@ -35,8 +33,8 @@ def _download_games(user: str) -> None:
f"{STEAM_OPTIONS}"
f"&steamid={config.users[user]}'"
)
# TODO error check
subprocess.run(cmd, shell=True)
helpers.run_and_log_cmd(cmd)
def _refresh_games_if_needed(users: list(str), force=False) -> None: