def step_table_made ( self ) : try : empty = self . step_table . empty except AttributeError : empty = True return not empty
how to code for empty table in python
check if the step table exists
def step_table_made(self):
        """check if the step table exists"""
        try:
            empty = self.step_table.empty
        except AttributeError:
            empty = True
        return not empty