From db232edeeb9bf1f55bb63bb66c44a12de0c2f279 Mon Sep 17 00:00:00 2001 From: TORISOUP Date: Tue, 29 Aug 2023 22:11:06 +0900 Subject: [PATCH] =?UTF-8?q?ProgramInfo=E3=81=AE=E4=BE=8B=E5=A4=96=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NicoliveClient/Plugins/Client/NicoliveApiClient.cs | 9 +++++++-- Assets/TORISOUP/NicoliveClient/version.txt | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Assets/TORISOUP/NicoliveClient/Plugins/Client/NicoliveApiClient.cs b/Assets/TORISOUP/NicoliveClient/Plugins/Client/NicoliveApiClient.cs index 4e47a6a..719065f 100644 --- a/Assets/TORISOUP/NicoliveClient/Plugins/Client/NicoliveApiClient.cs +++ b/Assets/TORISOUP/NicoliveClient/Plugins/Client/NicoliveApiClient.cs @@ -319,9 +319,14 @@ private async UniTask _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; diff --git a/Assets/TORISOUP/NicoliveClient/version.txt b/Assets/TORISOUP/NicoliveClient/version.txt index efccacd..e4484d5 100644 --- a/Assets/TORISOUP/NicoliveClient/version.txt +++ b/Assets/TORISOUP/NicoliveClient/version.txt @@ -1 +1 @@ -2023.8.28.1 \ No newline at end of file +2023.8.29 \ No newline at end of file