--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/ImportNode.py Wed Jul 27 15:01:13 2022 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/ImportNode.py Wed Jul 27 15:51:27 2022 +0200 @@ -17,7 +17,7 @@ from .ImportsEnums import GroupEnum, NodeTypeEnum -class ImportNodeException(Exception): +class ImportNodeError(Exception): """ Class representing an exception for an invalid import node. """ @@ -41,11 +41,11 @@ @type ast.AST @param checker reference to the checker object @type ImportsChecker - @exception ImportNodeException raised to indicate an invalid node was + @exception ImportNodeError raised to indicate an invalid node was given to this class """ if not isinstance(astNode, (ast.Import, ast.ImportFrom)): - raise ImportNodeException( + raise ImportNodeError( "Node type {0} not recognized".format(type(astNode)) ) @@ -123,11 +123,11 @@ @return string representation of the instance @rtype str - @exception ImportNodeException raised to indicate an invalid node was + @exception ImportNodeError raised to indicate an invalid node was given to this class """ if self.nodeType not in (NodeTypeEnum.IMPORT, NodeTypeEnum.IMPORT_FROM): - raise ImportNodeException( + raise ImportNodeError( "The node type {0} is not recognized.".format(self.nodeType) )