Skip to content

Commit

Permalink
Drop "traceback" from ipynb_error field
Browse files Browse the repository at this point in the history
The traceback and message end up being the same; so we'll only show the
"message" for now. We can re-add the "traceback" later if we find it
does contain more information.
  • Loading branch information
jonathansick committed Jan 4, 2024
1 parent ad81b35 commit e69d514
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/noteburst/handlers/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
class NotebookError(BaseModel):
"""Information about an exception that occurred during notebook exec."""

traceback: str = Field(description="The traceback of the exception.")
name: str = Field(description="The name of the exception.")
message: str = Field(description="The exception's message.")

Expand All @@ -43,7 +42,6 @@ def from_nbexec_error(
is the result of execution in ``/user/:username/rubin/execute``.
"""
return cls(
traceback=error.traceback,
name=error.ename,
message=error.err_msg,
)
Expand Down

0 comments on commit e69d514

Please sign in to comment.