Skip to content

Add doctests and improve error handling for world_covid19_stats function #9873

Add doctests and improve error handling for world_covid19_stats function

Add doctests and improve error handling for world_covid19_stats function #9873

Triggered via pull request October 1, 2024 18:34
Status Failure
Total duration 13s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Ruff (F821): web_programming/world_covid19_stats.py#L19
web_programming/world_covid19_stats.py:19:16: F821 Undefined name `requests`
Ruff (EM102): web_programming/world_covid19_stats.py#L22
web_programming/world_covid19_stats.py:22:13: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (F821): web_programming/world_covid19_stats.py#L25
web_programming/world_covid19_stats.py:25:12: F821 Undefined name `BeautifulSoup`
Ruff (C416): web_programming/world_covid19_stats.py#L44
web_programming/world_covid19_stats.py:44:12: C416 Unnecessary `dict` comprehension (rewrite using `dict()`)
ruff
Process completed with exit code 1.