Skip to content

Commit 97c46b1

Browse files
gbecedCopilot
andauthored
Potential fix for pull request finding
#59 (comment) Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 859444f commit 97c46b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

basana/external/ccxt/exchange.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ async def get_order_info(
356356
357357
* Either order_id or client_order_id should be set, but not both.
358358
"""
359-
assert (order_id is not None) ^ (client_order_id is not None), \
360-
"Either order_id or client_order_id should be set"
359+
if (order_id is None) == (client_order_id is None):
360+
raise ValueError("Either order_id or client_order_id should be set (but not both)")
361361
symbol = helpers.pair_to_symbol(pair)
362362
params = dict(kwargs)
363363
if client_order_id is not None:

0 commit comments

Comments
 (0)