Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 18, 2025
1 parent a4b0b3a commit f9d2be1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions marimo/_ast/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,13 @@ def _maybe_initialize(self) -> None:
except SyntaxError as e:
error_line = e.text
error_marker = " " * (e.offset - 1) + "^"
err = (
f"{error_line}"
f"{error_marker}\n"
f"{e.msg}"
)
err = f"{error_line}{error_marker}\n{e.msg}"
errors.append(err)
syntax_errors = "\n-----\n".join(errors)

raise UnparsableError(
f"The notebook '{self._filename}' has cells with syntax errors, " +
f"so it cannot be initialized:\n {syntax_errors}"
f"The notebook '{self._filename}' has cells with syntax errors, "
+ f"so it cannot be initialized:\n {syntax_errors}"
) from None

if self._initialized:
Expand Down

0 comments on commit f9d2be1

Please sign in to comment.