returning InvalidOrder exception for get_order

This commit is contained in:
Misagh
2019-04-05 19:46:43 +02:00
parent 7f4fd6168a
commit 2b49a11b2a
2 changed files with 4 additions and 4 deletions

View File

@@ -624,8 +624,8 @@ class Exchange(object):
try:
return self._api.fetch_order(order_id, pair)
except ccxt.InvalidOrder as e:
raise DependencyException(
f'Could not get order. Message: {e}')
raise InvalidOrderException(
f'Tried to get an invalid order. Message: {e}')
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
raise TemporaryError(
f'Could not get order due to {e.__class__.__name__}. Message: {e}')