File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
dev/pyRevitLabs/pyRevitLabs.PyRevit Expand file tree Collapse file tree 1 file changed +4
-6
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,8 @@ 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
36
- // if it's not there, the clear cache request is technically already satisfied
37
- //else
38
- // throw new pyRevitResourceMissingException(pyRevitAppDataPath);
35
+ else
36
+ logger . Debug ( $ "{ PyRevitLabsConsts . PyRevitPath } directory not found, nothing to clear.") ;
39
37
}
40
38
41
39
// clear all caches
@@ -50,7 +48,7 @@ public static void ClearAllCaches() {
50
48
}
51
49
}
52
50
else
53
- throw new pyRevitResourceMissingException ( PyRevitLabsConsts . PyRevitPath ) ;
51
+ logger . Debug ( $ " { PyRevitLabsConsts . PyRevitPath } directory not found, nothing to clear." ) ;
54
52
}
55
53
56
54
You can’t perform that action at this time.
0 commit comments