Skip to content

Commit 6c825ae

Browse files
committed
no error log on first start
1 parent 637ba4f commit 6c825ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

OpenpilotToolkit/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ public static int Main(string[] args)
9191

9292
try
9393
{
94-
Directory.Delete(tempPath, true);
94+
if (Directory.Exists(tempPath))
95+
{
96+
Directory.Delete(tempPath, true);
97+
}
98+
9599
Directory.CreateDirectory(tempPath);
96100
}
97101
catch (Exception e)

0 commit comments

Comments
 (0)