Remove `with self.assertRaises(Exception):`
Open
good first issue
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 229
- PR merge metrics
- No merged PRs in 30d
Description
`with self.assertRaises(Exception):` is used in a couple places for testing an exception is raised.
It can catch any Exception which can result in catching unexpected error.
Change to use a more specific exception or use `self.assertRaisesRegex` instead.
Contributor guide
Assessment
This issue has not been assessed yet.