Skip to content

Commit

Permalink
fix planning parser error
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Aug 23, 2024
1 parent a2698bd commit 2424d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/feed_parsers/superdesk_planning_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def parse_coverage_planning(self, news_coverage_elt, item):
if planning_elt is not None:
headline_elt = planning_elt.find(self.qname("headline"))
content = planning_elt.find(self.qname("itemClass")).get("qcode")
planning = {"slugline": headline_elt.text.strip(), "g2_content_type": content.split(":")[1]}
planning = {"slugline": (headline_elt.text or "").strip(), "g2_content_type": content.split(":")[1]}

description_elt = planning_elt.find(self.qname("description"))
if description_elt is not None and description_elt.text:
Expand Down

0 comments on commit 2424d46

Please sign in to comment.