Catch SecretNotFound exceptions
This commit is contained in:
		| @@ -85,6 +85,9 @@ namespace Novell.CASA.DataEngines | |||||||
|  |  | ||||||
|                      while (se.MoveNext()) |                      while (se.MoveNext()) | ||||||
|                      { |                      { | ||||||
|  |                          try | ||||||
|  |                          { | ||||||
|  |  | ||||||
|  |  | ||||||
|                              Secret secret = store.getSecret(se.Current); |                              Secret secret = store.getSecret(se.Current); | ||||||
|                              NameValueCollection nvc = secret.getKeyValueCollection(); |                              NameValueCollection nvc = secret.getKeyValueCollection(); | ||||||
| @@ -148,7 +151,11 @@ namespace Novell.CASA.DataEngines | |||||||
|  |  | ||||||
|                              //Finally Add Secret to Elem |                              //Finally Add Secret to Elem | ||||||
|                              keychain.AppendChild(mi_secret); |                              keychain.AppendChild(mi_secret); | ||||||
|  |                          } | ||||||
|  |                          catch (Exception) | ||||||
|  |                          { | ||||||
|  |                              //Console.WriteLine("Secret Not Found: " + se.Current);                              | ||||||
|  |                          } | ||||||
|                      } |                      } | ||||||
|               } |               } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user