diff --git a/pynamodb/models.py b/pynamodb/models.py index d125e1add..ed70206b9 100644 --- a/pynamodb/models.py +++ b/pynamodb/models.py @@ -452,8 +452,9 @@ def get(cls, consistent_read=consistent_read ) cls.throttle.add_record(data.get(CONSUMED_CAPACITY)) - if data: - return cls.from_raw_data(data.get(ITEM)) + item_data = data.get(ITEM) + if item_data: + return cls.from_raw_data(item_data) else: return None