Load a font.
(self, font_name, size)
| 1609 | except OSError as e: |
| 1610 | logger.error(f"OS error occurred while creating live status file: {e}") |
| 1611 | except Exception as e: |
| 1612 | logger.error(f"Unexpected error occurred while creating live status file: {e}") |
| 1613 | |
| 1614 | |
| 1615 | def _generate_actions_json_if_needed(self): |
| 1616 | """Only regenerate actions.json if the action modules have changed. |
| 1617 | |
| 1618 | Compares the modification time of the actions directory against the |
| 1619 | existing actions.json file. If no .py file is newer, we also verify |
| 1620 | that every action .py has a corresponding entry in the JSON — a |
| 1621 | previous generation may have missed modules due to transient import |
| 1622 | errors (e.g. scanning.py failing once). |