Check if SteamSpy API returns no apps

This commit is contained in:
ilumos 2020-05-17 12:55:15 +01:00
parent 5b170c3bcf
commit 9ae96baacd

View file

@ -67,6 +67,13 @@ class QueuePopularApps extends Command
$apps = json_decode($result->getBody(), true);
if ( ! count($apps) ) {
$this->error('SteamSpy API did not return any apps:');
$this->error(self::POPULAR_STEAM_APP_LIST_URL . ' returned:');
$this->error($result->getBody());
die();
}
$i = 0;
foreach ($apps as $appId => $app) {