Added error handling for get_info()