Skip to content

Commit f3aeb76

Browse files
committed
Fix handling of no spot prices being offered to AWS driver
1 parent de13e97 commit f3aeb76

File tree

1 file changed

+1
-1
lines changed
  • server/src/tft/artemis/drivers

1 file changed

+1
-1
lines changed

server/src/tft/artemis/drivers/aws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ def _get_spot_price(
14251425
try:
14261426
current_price = float(prices[0]['SpotPrice'])
14271427

1428-
except KeyError:
1428+
except (KeyError, IndexError):
14291429
PoolMetrics.inc_error(self.poolname, 'spot-price-not-detected')
14301430

14311431
return Error(Failure('failed to detect spot price'))

0 commit comments

Comments
 (0)