Skip to content

Commit

Permalink
more RDS engine choices + try/catch for future ones
Browse files Browse the repository at this point in the history
  • Loading branch information
EverettBerry committed Mar 7, 2024
1 parent 61b4ad7 commit 4a34389
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion detail_pages_rds.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"230": "SQL Server Enterprise (Outpost On-Prem)",
"231": "SQL Server (Outpost On-Prem)",
"232": "SQL Server Web (Outpost On-Prem)",
"402": "SQL Server Standard BYOL",
"403": "SQL Server Enterprise",
"405": "SQL Server Standard BYOM",
"406": "SQL Server Enterprise BYOM",
"407": "SQL Server Developer",
Expand Down Expand Up @@ -178,7 +180,11 @@ def prices(pricing):
# RDS ONLY: engines are numbers but some are words. We can skip the words
continue

os = rds_engine_mapping[os]
try:
os = rds_engine_mapping[os]
except KeyError:
print(f"WARNING: RDS OS {os} not found for detail pages.")
continue
display_prices[region][os] = {}

# Doing a lot of work to deal with prices having up to 6 places
Expand Down

0 comments on commit 4a34389

Please sign in to comment.