Skip to content

Commit 29a6c62

Browse files
committed
added fallback value for price_per_hour
1 parent a50b44e commit 29a6c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datacrunch/instances/instances.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def get_by_id(self, id: str) -> Instance:
321321
id=instance_dict['id'],
322322
instance_type=instance_dict['instance_type'],
323323
image=instance_dict['image'],
324-
price_per_hour=instance_dict['price_per_hour'],
324+
price_per_hour=instance_dict['price_per_hour'] if 'price_per_hour' in instance_dict else None,
325325
location=instance_dict['location'],
326326
hostname=instance_dict['hostname'],
327327
description=instance_dict['description'],

0 commit comments

Comments
 (0)