Catch except and print env