Skip to content

Commit

Permalink
raise tastytrade auth expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
r0fls committed Dec 3, 2024
1 parent 695b5c8 commit 99368cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brokers/tastytrade_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def _get_order_status(self, order_id):
except requests.RequestException as e:
logger.error('Failed to retrieve order status',
extra={'error': str(e)})
# Raise so that the caller knows to perform a credential refresh
raise

def _cancel_order(self, order_id):
logger.info('Cancelling order', extra={'order_id': order_id})
Expand Down

0 comments on commit 99368cb

Please sign in to comment.