Inventory update exception swallowed

Code reviewHard20 minShopify style

Your task

Review this Python function that records a sale: it writes the ledger entry, then updates inventory.