mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Removed throw on missing boolean properties in LS
This commit is contained in:
@@ -83,7 +83,11 @@ namespace RuriLib.LS
|
||||
{
|
||||
prop = instance.GetType().GetProperty(result[0]);
|
||||
}
|
||||
catch { throw new ArgumentException($"There is no property called {result[0]} in the type {instance.GetType().ToString()}"); }
|
||||
catch
|
||||
{
|
||||
return;
|
||||
// throw new ArgumentException($"There is no property called {result[0]} in the type {instance.GetType().ToString()}");
|
||||
}
|
||||
var propVal = prop.GetValue(instance);
|
||||
if (propVal.GetType() != typeof(bool)) throw new InvalidCastException($"The property {result[0]} is not a boolean");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user