File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
dev/pyRevitLabs/pyRevitLabs.PyRevit Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace pyRevitLabs.PyRevit {
18
18
public static class PyRevitCaches {
19
19
private static readonly Logger logger = LogManager . GetCurrentClassLogger ( ) ;
20
20
21
- // pyrevit cache folder
21
+ // pyrevit cache folder
22
22
// @reviewed
23
23
public static string GetCacheDirectory ( int revitYear ) {
24
24
return Path . Combine ( PyRevitLabsConsts . PyRevitPath , revitYear . ToString ( ) ) ;
@@ -32,10 +32,11 @@ public static void ClearCache(int revitYear) {
32
32
RevitController . KillRunningRevits ( revitYear ) ;
33
33
CommonUtils . DeleteDirectory ( GetCacheDirectory ( revitYear ) ) ;
34
34
}
35
- // it's just clearing caches. Let's not be paranoid and throw an exception is directory does not exist
35
+ else
36
+ // it's just clearing caches. Let's not be paranoid and throw an exception if directory does not exist
36
37
// if it's not there, the clear cache request is technically already satisfied
37
- //else
38
38
// throw new pyRevitResourceMissingException(pyRevitAppDataPath);
39
+ Console . WriteLine ( $ "{ PyRevitLabsConsts . PyRevitPath } directory not found, nothing to clear.") ;
39
40
}
40
41
41
42
// clear all caches
@@ -50,7 +51,7 @@ public static void ClearAllCaches() {
50
51
}
51
52
}
52
53
else
53
- throw new pyRevitResourceMissingException ( PyRevitLabsConsts . PyRevitPath ) ;
54
+ Console . WriteLine ( $ " { PyRevitLabsConsts . PyRevitPath } directory not found, nothing to clear." ) ;
54
55
}
55
56
56
57
You can’t perform that action at this time.
0 commit comments