It's bad practise to catch all exception unconditionally. Use more specific exception.
pylint > W: 39,4: No exception type(s) specified Signed-off-by: Isaku Yamahata <[email protected]> --- ryu/ofproto/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/__init__.py b/ryu/ofproto/__init__.py index 90ead38..8d14132 100644 --- a/ryu/ofproto/__init__.py +++ b/ryu/ofproto/__init__.py @@ -36,7 +36,7 @@ for parser_file_name in _OFPROTO_PARSER_FILE_NAMES: try: parser_mod = utils.import_module(parser_mod_name) consts_mod = utils.import_module(consts_mod_name) - except: + except ImportError: continue assert consts_mod.OFP_VERSION not in _OFPROTO_MODULES -- 1.7.10.4 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
