iOS web browser with a focus on security and privacy
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

HSTSCache: catch failure to persist

+8 -1
+8 -1
Endless/HSTSCache.m
··· 212 212 213 213 - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile 214 214 { 215 - return [[self dict] writeToFile:path atomically:useAuxiliaryFile]; 215 + @try { 216 + return [[self dict] writeToFile:path atomically:useAuxiliaryFile]; 217 + } 218 + @catch(NSException *e) { 219 + NSLog(@"[HSTSCache] failed persisting to file: %@", e); 220 + } 221 + 222 + return false; 216 223 } 217 224 218 225 - (void)setValue:(id)value forKey:(NSString *)key