Skip to content

Commit a984861

Browse files
committed
adding exception_class
1 parent c010a11 commit a984861

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

wolframclient/language/decorators.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,16 @@ def safe_wl_execute(
8484
]
8585

8686

87-
def to_wl(**export_opts):
87+
def to_wl(exception_class=WolframLanguageException, **export_opts):
8888
def outer(function):
8989
@wraps(function)
9090
def inner(*args, **opts):
9191
return safe_wl_execute(
92-
function=function, args=args, opts=opts, export_opts=export_opts
92+
function=function,
93+
args=args,
94+
opts=opts,
95+
export_opts=export_opts,
96+
exception_class=exception_class,
9397
)
9498

9599
return inner

0 commit comments

Comments
 (0)