Skip to content

Commit 367289c

Browse files
committed
Catch UnboundLocalError too
1 parent 48614e1 commit 367289c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/setup_spark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Note that this must be inserted IN your script. You can't import this, it won't work.
33
try:
44
sc and spark
5-
except NameError as e:
5+
except (NameError, UnboundLocalError) as e:
66

77
import findspark
88

0 commit comments

Comments
 (0)