Skip to content

Commit 6198ffe

Browse files
committed
Wrap star function for better exception
1 parent 596cb3a commit 6198ffe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

datastream/tools/star.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
from functools import wraps
2+
13

24
def star(fn):
35
'''Wrap function to expand input to arguments'''
4-
return lambda args: fn(*args)
6+
@wraps(fn)
7+
def wrapper(args):
8+
return fn(*args)
9+
return wrapper

0 commit comments

Comments
 (0)