File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Plugins/Wox.Plugin.Program/Programs Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -196,11 +196,20 @@ private static IEnumerable<Package> CurrentUserPackages()
196
196
ps = ps . Where ( p =>
197
197
{
198
198
bool valid ;
199
+ try
200
+ {
201
+ var f = p . IsFramework ;
202
+ var d = p . IsDevelopmentMode ;
203
+ var path = p . InstalledLocation . Path ;
204
+ valid = ! f && ! d && ! string . IsNullOrEmpty ( path ) ;
205
+ }
206
+ catch ( Exception e )
207
+ {
208
+ ProgramLogger . LogException ( "|UWP|CurrentUserPackages|An unexpected error occured and "
209
+ + $ "unable to verify if package is valid", e ) ;
210
+ return false ;
211
+ }
199
212
200
- var f = p . IsFramework ;
201
- var d = p . IsDevelopmentMode ;
202
- var path = p . InstalledLocation . Path ;
203
- valid = ! f && ! d && ! string . IsNullOrEmpty ( path ) ;
204
213
205
214
return valid ;
206
215
} ) ;
You can’t perform that action at this time.
0 commit comments