Skip to content

Commit

Permalink
Merge pull request #3060 from CounterpartyXCP/fixes
Browse files Browse the repository at this point in the history
Fixed handling of TypeError in API calls
  • Loading branch information
ouziel-slama authored Mar 3, 2025
2 parents 0e47f22 + d19de78 commit d6a5c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/api/apiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def handle_route(**kwargs):
# parse args
try:
function_args = prepare_args(route, **kwargs)
except ValueError as e:
except (ValueError, TypeError) as e:
return return_result(400, error=str(e), start_time=start_time, query_args=query_args)

logger.trace(f"API Request - Arguments: {function_args}")
Expand Down
1 change: 1 addition & 0 deletions release-notes/release-notes-v10.10.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ counterparty-server start
- Fix ungraceful Waitress shutdown
- Handle RSFetcher version mismatch error correctly
- Handle Counterparty Server version checking errors correctly
- Fixed handling of `TypeError` in API calls

## Codebase

Expand Down

0 comments on commit d6a5c3d

Please sign in to comment.