Bad attempt at trying to catch a specific math domain error