Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lionel Henry <[email protected]>
  • Loading branch information
dfalbel and lionel- committed Sep 26, 2024
1 parent 2c7ed69 commit bcb8bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ark/src/modules/positron/reticulate.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
venv <- config$virtualenv

# Check that python can be loaded, if it can't we will throw
# an error. which is unrecoverable.
# an error, which is unrecoverable.
config <- tryCatch({
reticulate::py_config()
}, error = function(err) {
Expand All @@ -68,7 +68,7 @@
})

if (inherits(ipykernel, "error")) {
return(list(python = python, venv = venv, error = as.character(ipykernel)))
return(list(python = python, venv = venv, error = conditionMessage(ipykernel)))
}

list(
Expand Down

0 comments on commit bcb8bb7

Please sign in to comment.