Added a raise instead of print to halt the execution