Importing sys, instead of raising an exception, I just sys.exit(1)
Actually, exceptions give more information