Skip to content

Commit 332161f

Browse files
Merge pull request #1117 from maddie480/fallback-on-auth-exceptions
2 parents eaa8887 + 6cb0d12 commit 332161f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Celeste.Mod.mm/Mod/UI/AutoModUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void autoUpdate(SortedDictionary<ModUpdateInfo, EverestModuleMetadata> u
142142
ModUpdaterHelper.VerifyChecksum(update, zipPath);
143143

144144
break; // out of the loop
145-
} catch (Exception e) when (e is WebException or TimeoutException or IOException) {
145+
} catch (Exception e) {
146146
downloadException = e;
147147
Logger.Warn("AutoModUpdater", $"Download from {url} failed, trying another mirror");
148148
Logger.LogDetailed(e);

Celeste.Mod.mm/Mod/UI/OuiDependencyDownloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private void downloadDependency(ModUpdateInfo mod, EverestModuleMetadata install
474474
LogLine(Dialog.Clean("DEPENDENCYDOWNLOADER_VERIFYING_CHECKSUM"));
475475
ModUpdaterHelper.VerifyChecksum(mod, downloadDestination);
476476
break; // out of the loop
477-
} catch (Exception e) when (e is WebException or TimeoutException or IOException) {
477+
} catch (Exception e) {
478478
downloadException = e;
479479
Logger.Warn("OuiDependencyDownloader", $"Download failed, trying another mirror");
480480
Logger.LogDetailed(e);

Celeste.Mod.mm/Mod/UI/OuiModUpdateList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private void downloadMod(ModUpdateInfo update, TextMenu.Button button, string zi
360360

361361
ModUpdaterHelper.VerifyChecksum(update, zipPath);
362362
break; // out of the loop
363-
} catch (Exception e) when (e is WebException or TimeoutException) {
363+
} catch (Exception e) {
364364
downloadException = e;
365365
Logger.Warn("OuiModUpdateList", $"Download from {url} failed, trying another mirror.");
366366
Logger.LogDetailed(e);

0 commit comments

Comments
 (0)