fraxiinus / ReplayBook

Play, manage, and inspect League of Legends replays
https://www.fraxiinus.dev/ReplayBook/
GNU General Public License v3.0
325 stars 51 forks source link

Static data downloader language not found crash #202

Closed fraxiinus closed 2 years ago

fraxiinus commented 2 years ago

Static data downloader causes crash if language does not exist in CDragon

ERROR | 2022-08-02T22:09:46 | MainWindow.xaml.cs -> .ctor() -> 53 | System.Net.Http.HttpRequestException: HTTP request to Community Dragon failed on 404, https://raw.communitydragon.org/8.1/plugins/rcp-be-lol-game-data/global/zh_tw/v1/perks.json at Fraxiinus.ReplayBook.StaticData.Data.CommunityDragonClient.GetRuneStatDescriptions(List`1 runes, String version, String language, CancellationToken cancellationToken) at Fraxiinus.ReplayBook.StaticData.StaticDataManager.DownloadProperties(String patchVersion, StaticDataType types, String language, CancellationToken cancellationToken) at Fraxiinus.ReplayBook.UI.Main.Views.StaticDataAddDialog.DownloadButton_Click(Object sender, RoutedEventArgs e) at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)