def visit_TryExcept(self, node):
    for handler in node.handlers:
        if handler.name:
            self.name.append(handler.name.id)
            super(CheckForStrExc, self).generic_visit(node)
            self.name = self.name[:(- 1)]
        else:
            super(CheckForStrExc, self).generic_visit(node)
def visit_TryExcept(self, node):
    for handler in node.handlers:
        if handler.name:
            self.name.append(handler.name.id)
            super(CheckForStrExc, self).generic_visit(node)
            self.name = self.name[:(- 1)]
        else:
            super(CheckForStrExc, self).generic_visit(node)