Skip to content

Commit

Permalink
ProgramInfoの例外修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TORISOUP committed Aug 29, 2023
1 parent d883769 commit db232ed
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 db232ed

Please sign in to comment.