HKUDS/DeepTutor · error · ValueError
event_type must not be empty
Error message
event_type must not be empty
What it means
Error "event_type must not be empty" thrown in HKUDS/DeepTutor.
Source
Thrown at deeptutor/learning/storage.py:130
self.changed = created
self._events: list[tuple[str, dict[str, Any], str, str]] = []
if created:
self.emit("path.created", {})
def touch(self) -> None:
self.changed = True
def emit(
self,
event_type: str,
payload: dict[str, Any] | None = None,
*,
session_id: str = "",
turn_id: str = "",
) -> None:
event_name = str(event_type or "").strip()
if not event_name:
raise ValueError("event_type must not be empty")
self.changed = True
self._events.append(
(event_name, dict(payload or {}), str(session_id or ""), str(turn_id or ""))
)
@property
def events(self) -> list[tuple[str, dict[str, Any], str, str]]:
return list(self._events)
@staticmethod
def _interaction_from_row(row: sqlite3.Row | None) -> MasteryInteraction | None:
if row is None:
return None
return MasteryInteraction(
interaction_id=row["interaction_id"],
path_id=row["path_id"],
question=json.loads(row["question_json"]),
status=InteractionStatus(row["status"]),View on GitHub (pinned to 3e82f13042)
When it happens
Trigger: Thrown at deeptutor/learning/storage.py:130 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27).
Data as JSON: /api/errors/21491731fa34dcad.
Report an issue: GitHub.