Skip to content

Commit

Permalink
Fix CodeQL: Information exposure through an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Mar 5, 2024
1 parent d3be432 commit 23b8c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counterparty-lib/counterpartylib/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ def handle_rest(path_args, flask_request):
try:
query_data = get_rows(self.db, table=query_type, filters=data_filter, filterop=operator)
except APIError as error:
return flask.Response(str(error), 400, mimetype='application/json')
return flask.Response('API Error', 400, mimetype='application/json')

# See which encoding to choose from.
file_format = flask_request.headers['Accept']
Expand Down

0 comments on commit 23b8c6d

Please sign in to comment.