BoostryJP / ibet-Wallet-API

A powerful API suite for seamlessly building ibet blockchain wallet systems 🛠
https://ibet.jp/ibet-for-fin
Apache License 2.0
9 stars 0 forks source link

[FEATURE] Add exception handling about HTTPError to web3_utils #1314

Closed purplesmoke05 closed 1 year ago

purplesmoke05 commented 1 year ago

Is your feature request related to a problem? Please describe.

if a http request is emitted to quorum when quorum get temporary down or so, it will return http status code of 404 and requests.HTTPError.

Ref: https://github.com/BoostryJP/ibet-Prime/issues/473

There are no exception handling about HTTPError, so we would like to add it.

https://github.com/BoostryJP/ibet-Wallet-API/blob/ea0f43e1b95e729b69482f4beb6f667ce76367b6/app/utils/web3_utils.py#L115-L120

Describe the solution you'd like

Add exception handling about HTTPError to web3_utils.