HomePhabricator

[electrum] wrap the error message when exchange rate API fails

Description

[electrum] wrap the error message when exchange rate API fails

Summary:
Provide a better user experience by not showing a full python error stack for common URL or JSON errors.
ref T3816

Test Plan:
Try loading invoices with various errors (Tools > Invoice > Load and pay invoice).
With the example provided in T3816, replacing "api.binance.com" with "apisdqdsfgsqdg.binance.com" causes a JSONError.
Replacing "symbol=XECUSDT" with "symbol=XECUSGT" causes a HTTPError.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Maniphest Tasks: T3816

Differential Revision: https://reviews.bitcoinabc.org/D18052

Details

Provenance
PiRKAuthored on Tue, May 6, 06:51
PiRKPushed on Tue, May 6, 09:01
Reviewer
Restricted Project
Differential Revision
D18052: [electrum] wrap the error message when exchange rate API fails
Parents
rABC973fbe8030ca: [Cashtab] Set ConnectionStrategy.ClosestFirst for initialization
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task