Skip to content

Commit 204b266

Browse files
authored
Update and fix covid_stats_via_xpath.py
1 parent f239675 commit 204b266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_programming/covid_stats_via_xpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def covid_stats(
4646
data = html.fromstring(response.content).xpath(xpath_str)
4747
if len(data) != 3:
4848
print("Unexpected data format. The page structure may have changed.")
49-
return CovidData("N/A", "N/A", "N/A")
49+
data = "N/A", "N/A", "N/A"
5050
return CovidData(*data)
5151

5252

0 commit comments

Comments
 (0)