Catch SecretNotFound exceptions
This commit is contained in:
parent
f60d8d1cc6
commit
d9c92e679f
@ -85,6 +85,9 @@ namespace Novell.CASA.DataEngines
|
||||
|
||||
while (se.MoveNext())
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
Secret secret = store.getSecret(se.Current);
|
||||
NameValueCollection nvc = secret.getKeyValueCollection();
|
||||
@ -92,7 +95,7 @@ namespace Novell.CASA.DataEngines
|
||||
mi_secret = doc.CreateElement(ConstStrings.CCF_SECRET);
|
||||
synchAttr = doc.CreateAttribute(ConstStrings.CCF_SYNCH);
|
||||
//TBD:
|
||||
synchAttr.Value = "Persistent Secret" ;
|
||||
synchAttr.Value = "Persistent Secret";
|
||||
secidAttr = doc.CreateAttribute(ConstStrings.CCF_ID);
|
||||
secidAttr.Value = se.Current;
|
||||
mi_secret.SetAttributeNode(secidAttr);
|
||||
@ -122,7 +125,7 @@ namespace Novell.CASA.DataEngines
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
//Time
|
||||
XmlElement Time1 = doc.CreateElement(ConstStrings.CCF_TIME);
|
||||
|
||||
@ -144,11 +147,15 @@ namespace Novell.CASA.DataEngines
|
||||
Time1.AppendChild(acc1);
|
||||
|
||||
mi_secret.AppendChild(Time1);
|
||||
*/
|
||||
*/
|
||||
|
||||
//Finally Add Secret to Elem
|
||||
keychain.AppendChild(mi_secret);
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
//Console.WriteLine("Secret Not Found: " + se.Current);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user