If you prefer not to modify your code, you can disable the inspection in IDE following these steps:
Settings > Editor > Inspections > Unclear exception clausesa, uncheck it.
It works for PyCharm 2023.1.2. @Daniel Serretti mentioned that the name of this rule was something like "too broad" in older versions.