This removes the only call for blockchain.transaction.get with verbose=True, and uses blockchain.transaction.get_height instead to get the only information we need and avoid some computation.
Also replace a try... except block with a simple check that the jsonrpc response provided to the callback has the expected type. I don't see what else could raise an error in this codepath.