Skip to content

Commit d9a30f9

Browse files
committed
Fix undefined func.
1 parent 50d0d65 commit d9a30f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/generic_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def func_reconstruct_closure(values):
6767
try:
6868
exec(src, globals())
6969
except SyntaxError:
70+
func = None
7071
raise SyntaxError(src)
7172
return func(values).__closure__
7273

0 commit comments

Comments
 (0)