nice error checking, look at the raise function in python to "raise an error" as opposed to just printing.