STORDIS / orca_nw_lib

gNMI python package for SONiC switch discovery and management.
Other
2 stars 3 forks source link

Improvise exception handling. #46

Open kamalkrbh opened 4 months ago

kamalkrbh commented 4 months ago

In orca_nw_lib and orca_backendTop level class Exception is being caught, This might lead to incorrect handling of several other exceptions e.g. a variable accessed before initialization and many more. Instead separate exceptions should be caught -

Aboce exceptions should be caught individually, instead of catching "Exception".