Skip to content

Commit

Permalink
Merge pull request #2905 from CounterpartyXCP/fixes
Browse files Browse the repository at this point in the history
Catch OverflowError on API calls
  • Loading branch information
ouziel-slama authored Jan 6, 2025
2 parents 21ad64a + e1f7443 commit 80ebe14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions counterparty-core/counterpartycore/lib/api/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions release-notes/release-notes-v10.9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 80ebe14

Please sign in to comment.