Welcome to the Treehouse Community
Looking to learn something new?
Luke Maschoff820 Points
Not sure what i'm doing wrong when raising an exception
I feel like I'm doing everything correct here, but I still get an improper indentation error whenever I check work.
def suggest(product_idea): return product_idea + "inator" if len(product_idea) < 3: raise ValueError("Please use more than 3 characters!")
Craig DennisTreehouse Teacher
return exits the function immediately...will your exception ever get thrown?
Let me know if that hint doesn't do the trick ;)