Skip to content

Commit 64be410

Browse files
committed
Revert error color change
1 parent eb357e6 commit 64be410

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pysrc/juliacall/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ def __str__(self):
3636
e = self.exception
3737
b = self.backtrace
3838
if b is None:
39-
f = Main.seval("e -> io -> showerror(IOContext(io, :color=>true), e)")(e)
39+
return Base.sprint(Base.showerror, e)
4040
else:
41-
f = Main.seval("(e, b) -> io -> showerror(IOContext(io, :color=>true), e, b)")(e, b)
42-
return Base.sprint(f)
41+
return Base.sprint(Base.showerror, e, b)
4342
@property
4443
def exception(self):
4544
return self.args[0]

0 commit comments

Comments
 (0)