Skip to content

Commit

Permalink
Merge pull request #39 from statisticsnorway/xml_funk_text
Browse files Browse the repository at this point in the history
Xml funk text
  • Loading branch information
LBiermann-ssb authored Jun 24, 2024
2 parents 71419f3 + 592e243 commit c647287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ssb-konjunk"
version = "0.0.7"
version = "0.0.8"
description = "SSB Konjunk"
authors = ["Edvard Garmannslund <[email protected]>"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions src/ssb_konjunk/xml_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def return_txt_xml(root: ET.Element, child: str) -> str | None:
Returns:
str: Returns string value from child element.
"""
string = None
for element in root.iter(child):
string = element.text
return string
Expand Down

0 comments on commit c647287

Please sign in to comment.