fixes broken csv loading
This commit is contained in:
		| @@ -47,10 +47,17 @@ public class FileCacheManager : IDisposable | ||||
|             foreach (var entry in entries) | ||||
|             { | ||||
|                 var splittedEntry = entry.Split(CsvSplit, StringSplitOptions.None); | ||||
|                 var hash = splittedEntry[0]; | ||||
|                 var path = splittedEntry[1]; | ||||
|                 var time = splittedEntry[2]; | ||||
|                 FileCaches[path] = new FileCache(hash, path, time); | ||||
|                 try | ||||
|                 { | ||||
|                     var hash = splittedEntry[0]; | ||||
|                     var path = splittedEntry[1]; | ||||
|                     var time = splittedEntry[2]; | ||||
|                     FileCaches[path] = new FileCache(hash, path, time); | ||||
|                 } | ||||
|                 catch (Exception) | ||||
|                 { | ||||
|                     Logger.Warn($"Failed to initialize entry {entry}, ignoring"); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|   <PropertyGroup> | ||||
|     <Authors></Authors> | ||||
|     <Company></Company> | ||||
|     <Version>0.4.21</Version> | ||||
|     <Version>0.4.22</Version> | ||||
|     <Description></Description> | ||||
|     <Copyright></Copyright> | ||||
|     <PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stanley Dimant
					Stanley Dimant