Discount parsing swallows errors

Code reviewMedium14 min

Your task

Review this Python helper that parses an optional discount and applies it to a price.