comparison sat/plugins/plugin_exp_list_of_interest.py @ 3270:0c3b7ee2628f

plugin list of interest: fixed wrong variable used in a log
author Goffi <goffi@goffi.org>
date Mon, 18 May 2020 23:31:55 +0200
parents 559a625a236b
children 83795ff8a633
comparison
equal deleted inserted replaced
3269:1352564e0202 3270:0c3b7ee2628f
230 for item in items: 230 for item in items:
231 try: 231 try:
232 interest_elt = next(item.elements(NS_LIST_INTEREST, "interest")) 232 interest_elt = next(item.elements(NS_LIST_INTEREST, "interest"))
233 except StopIteration: 233 except StopIteration:
234 log.warning(_("Missing interest element: {xml}").format( 234 log.warning(_("Missing interest element: {xml}").format(
235 xml=interest_elt.toXml())) 235 xml=item.toXml()))
236 continue 236 continue
237 if interest_elt.getAttribute("namespace") == namespace: 237 if interest_elt.getAttribute("namespace") == namespace:
238 filtered_items.append(item) 238 filtered_items.append(item)
239 items = filtered_items 239 items = filtered_items
240 240