Skip to content

Commit 94b6d81

Browse files
authored
Don't fail if creating graph directory fails
1 parent 09938b2 commit 94b6d81

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Authentication/Authentication/Common/GraphSessionInitializer.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ internal static GraphSession CreateInstance(IDataStore dataStore = null)
3030
{
3131
IGraphOption graphOptions = null;
3232
// Try to create directory if it doesn't exist.
33-
Directory.CreateDirectory(Core.Constants.GraphDirectoryPath);
33+
try
34+
{
35+
Directory.CreateDirectory(Core.Constants.GraphDirectoryPath);
36+
}
37+
finally
38+
{
39+
}
3440
if (File.Exists(Constants.GraphOptionsFilePath))
3541
{
3642
// Deserialize the JSON into the GraphOption instance

0 commit comments

Comments
 (0)