Page MenuHomePhabricator

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

Authored by PiRK on Tue, May 6, 06:56.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABCc362a890c708: [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.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
invoice_errors
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33220
Build 65923: Build Diffelectrum-tests
Build 65922: arc lint + arc unit