Steps to replicate the issue:
- Try searching when Wikidata API is slow or unresponsive
- Check application logs after errors occur
What happens?:
- Application can hang indefinitely when Wikidata API is slow (no timeouts on HTTP requests)
- Bare except: clauses in 9 locations catch all exceptions including SystemExit and KeyboardInterrupt, making debugging a bit difficult
What should have happened instead?:
- HTTP requests should timeout after 10 seconds and show the proper 404 error page
- Specific exception types should be caught (TypeError, KeyError, AttributeError, ValueError, requests.exceptions.RequestException)