Check output for curl commands
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user