Commit b1103b2
Fix save_image() compatibility with kaleido v1 (#2475)
Use py_has_attr() instead of tryNULL() to check for kaleido.scopes
attribute. Accessing a non-existent Python attribute can throw an
AttributeError that may not be caught properly by tryCatch in certain
reticulate configurations.
Also add force(kaleido) in newKaleidoScope to avoid potential lazy
evaluation issues with closures.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 4868a68 commit b1103b2
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
103 | 101 | | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
0 commit comments