def _is_robot_suite_file(self, file): try: tc = TestData(source=file) return tc.has_tests() except Exception, err: LOG.warn( "Parse %s met exception, may not be a valid robot suite file. %s" % (file, err.message))