mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Prevent error 500 if bad psbt
This commit is contained in:
parent
56976898bd
commit
e6e9668bbb
1 changed files with 5 additions and 1 deletions
|
@ -141,7 +141,11 @@ namespace BTCPayServer.Controllers
|
||||||
var derivationSchemeSettings = await GetDerivationSchemeSettings(walletId);
|
var derivationSchemeSettings = await GetDerivationSchemeSettings(walletId);
|
||||||
if (derivationSchemeSettings == null)
|
if (derivationSchemeSettings == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
try
|
||||||
|
{
|
||||||
|
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
||||||
|
}
|
||||||
|
catch { return BadRequest(); }
|
||||||
return View(nameof(WalletPSBTReady), vm);
|
return View(nameof(WalletPSBTReady), vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue