How do I catch a numpy warning like it's an exception (not just for testing)? How do I catch a numpy warning like it's an exception (not just for testing)? python python