Skip to content

Commit 194cf6a

Browse files
author
Christopher Doris
committed
rename JuliaError.stacktrace to backtrace
1 parent aca73d5 commit 194cf6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/juliacall/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def __repr__(self):
5454

5555
class JuliaError(Exception):
5656
"An error arising in Julia code."
57-
def __init__(self, exception, stacktrace=None):
58-
super().__init__(exception, stacktrace)
57+
def __init__(self, exception, backtrace=None):
58+
super().__init__(exception, backtrace)
5959
def __str__(self):
6060
e = self.exception
61-
b = self.stacktrace
61+
b = self.backtrace
6262
if b is None:
6363
return Base.sprint(Base.showerror, e)
6464
else:
@@ -67,7 +67,7 @@ def __str__(self):
6767
def exception(self):
6868
return self.args[0]
6969
@property
70-
def stacktrace(self):
70+
def backtrace(self):
7171
return self.args[1]
7272

7373
CONFIG = {'inited': False}

0 commit comments

Comments
 (0)