print is a function
Update exception usage to modern syntax