Move exception handling into call_get_file_tree for consistency.