Skip to content

Commit

Permalink
Merge pull request #22 from TORISOUP/fix_programinfo
Browse files Browse the repository at this point in the history
ProgramInfoの例外修正
  • Loading branch information
TORISOUP authored Aug 29, 2023
2 parents 0fe9858 + db232ed commit 5b76aeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,14 @@ private async UniTask<ProgramInfo> _GetProgramInfoAsync(string programId, Cancel
{
await uwr.SendWebRequest().ToUniTask(cancellationToken: ct);
}
catch (Exception)
catch (Exception ex) when (ex is not OperationCanceledException)
{
throw new ProgramNotFoundException($"{lv} is not found.");
if (uwr.responseCode == 404)
{
throw new ProgramNotFoundException($"{lv} is not found.");
}

throw new NicoliveApiClientException(uwr.downloadHandler.text, ex);
}

var json = uwr.downloadHandler.text;
Expand Down
2 changes: 1 addition & 1 deletion Assets/TORISOUP/NicoliveClient/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.8.28.1
2023.8.29

0 comments on commit 5b76aeb

Please sign in to comment.