Skip to content

Commit bcb8bb7

Browse files
dfalbellionel-
andauthored
Apply suggestions from code review
Co-authored-by: Lionel Henry <[email protected]>
1 parent 2c7ed69 commit bcb8bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ark/src/modules/positron/reticulate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
venv <- config$virtualenv
5050

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

7070
if (inherits(ipykernel, "error")) {
71-
return(list(python = python, venv = venv, error = as.character(ipykernel)))
71+
return(list(python = python, venv = venv, error = conditionMessage(ipykernel)))
7272
}
7373

7474
list(

0 commit comments

Comments
 (0)