Skip to content

flake8 fixed #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: feat/add_new_exchange_mexc_global
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hummingbot/connector/exchange/mexc/mexc_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ async def cancel_all(self, timeout_seconds: float) -> List[CancellationResult]:
self.logger().network(
f"Failed to cancel all orders: {this_turn_cancel_order_ids}" + repr(ex),
exc_info=True,
app_warning_msg=f"Failed to cancel all orders on Mexc. Check API key and network connection."
app_warning_msg="Failed to cancel all orders on Mexc. Check API key and network connection."
)
return cancellation_results

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def test_execute_cancel_fail(self, mock_cancel, mock_main_app):
self.exchange.execute_cancel(self.trading_pair, order.client_order_id)
)

self._is_logged("NETWORK", f"Failed to cancel order 0 : MexcAPIError('Order could not be canceled')")
self._is_logged("NETWORK", "Failed to cancel order 0 : MexcAPIError('Order could not be canceled')")

@patch("aiohttp.ClientSession.request", new_callable=AsyncMock)
def test_execute_cancel_cancels(self, mock_cancel):
Expand Down