webtranspose icon indicating copy to clipboard operation
webtranspose copied to clipboard

Incorrect exception handling

Open r614 opened this issue 2 years ago • 0 comments

The following exception block catches all exceptions without logging anything, making it incredibly difficult to debug the library. For example, bs4 fails to parse the HTML because of an optional lxml parser dependency, but the exception is never raised and the library fails to crawl silently.

https://github.com/mike-gee/webtranspose/blob/61d207a829f23ca21878b18395a1cde793a0ac78/src/webtranspose/crawl.py#L174-L178

r614 avatar Nov 10 '23 20:11 r614