fail gracefully when trying to do cool stuff
This commit is contained in:
parent
f568ea9c9e
commit
dcc16f7a7b
@ -40,7 +40,14 @@ namespace BTCPayServerDockerConfigurator.Models
|
||||
ssh.RunBash(FetchDisksCommand);
|
||||
if (cmd.ExitStatus == 0)
|
||||
{
|
||||
result.StorageList = JsonSerializer.Deserialize<BlockDevicesList>(cmd.Output);
|
||||
try
|
||||
{
|
||||
result.StorageList = JsonSerializer.Deserialize<BlockDevicesList>(cmd.Output);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
//fail gracefully when trying to do cool stuff
|
||||
}
|
||||
}
|
||||
|
||||
cmd = await
|
||||
|
||||
Loading…
Reference in New Issue
Block a user