added except to catch NotTreeError so that method does not blow up when the shaw given to look up a tree does not return a tree the method called to look up and object in a git tree throws an exception if the object returned is not a tree