Skip to content

Commit a5a5946

Browse files
committed
Fix Azure scrape pricing script
1 parent a32a434 commit a5a5946

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/scrape-azure-prices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_azure_prices():
4848
continue
4949
size = size_raw[2] + size_raw[1]
5050
prices = {}
51-
if not value["prices"].get("perhour"):
51+
if not value.get("prices", {}).get("perhour"):
5252
continue
5353
for reg, price in value["prices"]["perhour"].items():
5454
region = region_map[reg].lower().replace(" ", "")

0 commit comments

Comments
 (0)