logging_format/visitor.py
def get_except_handler_name(self, node):
        """
        Helper to get the exception name from an ExceptHandler node in both py2 and py3.

        """
        name = node.name
        if not name:
            return None

        if version_info < (3,):
            return name.id
        return name
def get_except_handler_name(self, node):
        name = node.name
        if not name:
            return None

        if version_info < (3,):
            return name.id
        return name
def get_except_handler_name ( self , node ) : name = node . name if not name : return None if version_info < ( 3 , ) : return name . id return name
Helper to get the exception name from an ExceptHandler node in both py2 and py3.
Helper to get the exception name from an ExceptHandler node in both py2 and py3 .