raise ATCommandException

I want to catch this exception like
("Error getting parameter, command status: " + response.status.description) digi.xbee.exception.ATCommandException: Error getting parameter, command status: TX failure
raise TimeoutException(“Response not received in the configured timeout.”)

When I am executing my program my coordinator is exiting when there is no zigBee are in range. I want to continue execution of my program with out stop is there is any way to catch this exception.

Arun Soman