aboutcode-org / cwe2

Common weakness enumeration library for Python (maintained fork of https://github.com/Julian-Nash/cwe )
MIT License
11 stars 3 forks source link

Use the appropriate built-in Exception class. #7

Open ziadhany opened 1 year ago

ziadhany commented 1 year ago

https://github.com/nexB/vulnerablecode/pull/1256#discussion_r1282717634 : Avoid too broad Exception.

https://docs.python.org/3/library/exceptions.html#built-in-exceptions