diff --git a/counterparty-core/counterpartycore/lib/api/api_server.py b/counterparty-core/counterpartycore/lib/api/api_server.py index 635b2ce3a..816d21ab4 100644 --- a/counterparty-core/counterpartycore/lib/api/api_server.py +++ b/counterparty-core/counterpartycore/lib/api/api_server.py @@ -360,10 +360,10 @@ def handle_route(**kwargs): CBitcoinAddressError, script.AddressError, exceptions.ElectrsError, + OverflowError, ) as e: - import traceback - - print(traceback.format_exc()) + # import traceback + # print(traceback.format_exc()) return return_result(400, error=str(e), start_time=start_time, query_args=query_args) except Exception as e: capture_exception(e) diff --git a/release-notes/release-notes-v10.9.0.md b/release-notes/release-notes-v10.9.0.md index 13a1f36ea..ce8c7df1e 100644 --- a/release-notes/release-notes-v10.9.0.md +++ b/release-notes/release-notes-v10.9.0.md @@ -41,6 +41,7 @@ - Don't put null values in API cache - Fix Get Sends By Address endpoint, return also `detach` and `move` - Fix `transactions.transaction_type` field when destination is `1CounterpartyXXXXXXXXXXXXXXXUWLpVr` +- Catch `OverflowError` on API calls ## Codebase