Skip to content

Raise qualified exceptions instead of generic 'Exception'

Codecov / codecov/patch succeeded Nov 27, 2024 in 1s

31.57% of diff hit (target 43.14%)

View this Pull Request on Codecov

31.57% of diff hit (target 43.14%)

Annotations

Check warning on line 126 in scraper/src/mindtouch2zim/asset.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/asset.py#L126

Added line #L126 was not covered by tests

Check warning on line 210 in scraper/src/mindtouch2zim/asset.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/asset.py#L210

Added line #L210 was not covered by tests

Check warning on line 220 in scraper/src/mindtouch2zim/asset.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/asset.py#L220

Added line #L220 was not covered by tests

Check warning on line 226 in scraper/src/mindtouch2zim/asset.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/asset.py#L226

Added line #L226 was not covered by tests

Check warning on line 232 in scraper/src/mindtouch2zim/asset.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/asset.py#L232

Added line #L232 was not covered by tests

Check warning on line 299 in scraper/src/mindtouch2zim/asset.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/asset.py#L299

Added line #L299 was not covered by tests

Check warning on line 434 in scraper/src/mindtouch2zim/client.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/client.py#L434

Added line #L434 was not covered by tests

Check warning on line 442 in scraper/src/mindtouch2zim/client.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/client.py#L442

Added line #L442 was not covered by tests

Check warning on line 41 in scraper/src/mindtouch2zim/html_rewriting.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/html_rewriting.py#L41

Added line #L41 was not covered by tests

Check warning on line 80 in scraper/src/mindtouch2zim/html_rewriting.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/html_rewriting.py#L80

Added line #L80 was not covered by tests

Check warning on line 188 in scraper/src/mindtouch2zim/html_rewriting.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/html_rewriting.py#L188

Added line #L188 was not covered by tests

Check warning on line 410 in scraper/src/mindtouch2zim/processor.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/processor.py#L410

Added line #L410 was not covered by tests

Check warning on line 420 in scraper/src/mindtouch2zim/processor.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

scraper/src/mindtouch2zim/processor.py#L420

Added line #L420 was not covered by tests