From 337194538d157853a85660439fd8f7972550b5b6 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 29 Oct 2011 14:27:53 +0100 Subject: [PATCH] config: catch FileNotFoundException and create config --- SparkleLib/SparkleConfig.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index 27dcf7fa..780fb2b4 100755 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -73,6 +73,9 @@ namespace SparkleLib { } catch (IOException) { CreateInitialConfig (); + } catch (FileNotFoundException) { + CreateInitialConfig (); + } catch (XmlException) { FileInfo file = new FileInfo (FullPath);