Skip to content

Commit a9caa5d

Browse files
committed
Fix %%sql cells in %run_shared magic
1 parent 9980a63 commit a9caa5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

singlestoredb/magics/run_shared.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,15 @@ def get_cells() -> Any:
113113
with prepended_to_syspath(dname):
114114
try:
115115
for cell in get_cells():
116-
result = self.run_cell(cell, silent=True, shell_futures=shell_futures)
116+
result = self.shell.run_cell(
117+
cell, silent=True, shell_futures=shell_futures,
118+
)
117119
if raise_exceptions:
118120
result.raise_error()
119121
elif not result.success:
120122
break
121123
except Exception:
122124
if raise_exceptions:
123125
raise
124-
self.showtraceback()
126+
self.shell.showtraceback()
125127
warn('Unknown failure executing file: <%s>' % fpath)

0 commit comments

Comments
 (0)