If ``tree.find('result-msg')`` is ``None`` you should protect against this blowing up otherwise the exception message won't be useful