Skip to content

Commit

Permalink
no error log on first start
Browse files Browse the repository at this point in the history
  • Loading branch information
spektor56 committed Mar 22, 2022
1 parent 637ba4f commit 6c825ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OpenpilotToolkit/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ public static int Main(string[] args)

try
{
Directory.Delete(tempPath, true);
if (Directory.Exists(tempPath))
{
Directory.Delete(tempPath, true);
}

Directory.CreateDirectory(tempPath);
}
catch (Exception e)
Expand Down

0 comments on commit 6c825ae

Please sign in to comment.