diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 993507ad29..c4c075a667 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +#### 2.15.9 - 21.10.2015 +* USABILITY: If caching fails we should recover - https://github.com/fsprojects/Paket/issues/1152 + #### 2.15.8 - 20.10.2015 * Try to report better error when file is blocked by Firewall - https://github.com/fsprojects/Paket/pull/1155 diff --git a/src/Paket.Core/NuGetV2.fs b/src/Paket.Core/NuGetV2.fs index 1bb79ea263..9311b3b385 100644 --- a/src/Paket.Core/NuGetV2.fs +++ b/src/Paket.Core/NuGetV2.fs @@ -304,7 +304,10 @@ let getDetailsFromNuGet force auth nugetURL (packageName:PackageName) (version:S errorFile.Delete() if invalidCache then - File.WriteAllText(cacheFile.FullName,JsonConvert.SerializeObject(details)) + try + File.WriteAllText(cacheFile.FullName,JsonConvert.SerializeObject(details)) + with + | _ -> () // if caching fails we should not fail return details with | exn ->