it is always wise to wrap your assumptions with try and except, and report any failures to log.