(section)
| 509 | raise ValueError(f"{self.learning_topic} Please generate teaching sections first") |
| 510 | |
| 511 | def task(section): |
| 512 | try: |
| 513 | self.generate_section_code(section, attempt=1) |
| 514 | return section.id, None |
| 515 | except Exception as e: |
| 516 | return section.id, e |
| 517 | |
| 518 | with ThreadPoolExecutor(max_workers=6) as executor: |
| 519 | futures = {executor.submit(task, section): section for section in self.sections} |
nothing calls this directly
no test coverage detected