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 <yamah...@valinux.co.jp> --- 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 ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel