Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit af0451e

Browse files
Merge pull request #733 from github-for-unity/fixes/dont-fail-if-updates-are-not-available
Don't throw errors if we can't download the latest json feed
2 parents 93c9210 + 8baa41a commit af0451e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UpdateCheck.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public class UpdateCheckWindow : EditorWindow
6060

6161
public static void CheckForUpdates()
6262
{
63-
var download = new DownloadTask(TaskManager.Instance.Token, EntryPoint.Environment.FileSystem, UpdateFeedUrl, EntryPoint.Environment.UserCachePath);
63+
var download = new DownloadTask(TaskManager.Instance.Token, EntryPoint.Environment.FileSystem, UpdateFeedUrl, EntryPoint.Environment.UserCachePath)
64+
.Catch(e => true);
6465
download.OnEnd += (thisTask, result, success, exception) =>
6566
{
6667
if (success)

0 commit comments

Comments
 (0)