Skip to content

Commit 904d146

Browse files
authored
Update PyRevitCaches.cs
1 parent c8be42e commit 904d146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/pyRevitLabs/pyRevitLabs.PyRevit/PyRevitCaches.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public static void ClearCache(int revitYear) {
3232
RevitController.KillRunningRevits(revitYear);
3333
CommonUtils.DeleteDirectory(GetCacheDirectory(revitYear));
3434
}
35-
else
3635
// it's just clearing caches. Let's not be paranoid and throw an exception if directory does not exist
3736
// if it's not there, the clear cache request is technically already satisfied
38-
// throw new pyRevitResourceMissingException(pyRevitAppDataPath);
37+
else
38+
// throw new pyRevitResourceMissingException(pyRevitAppDataPath);
3939
logger.Debug($"{PyRevitLabsConsts.PyRevitPath} directory not found, nothing to clear.");
4040
}
4141

0 commit comments

Comments
 (0)