Skip to content

Commit

Permalink
Fix detecting connect availability
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Aug 15, 2024
1 parent 4cbd9b0 commit 2362923
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/gresearch/spark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from pyspark.sql.connect.readwriter import DataFrameReader as ConnectDataFrameReader
from pyspark.sql.connect.session import SparkSession as ConnectSparkSession
has_connect = True
except ModuleNotFoundError:
except ImportError:
has_connect = False

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion python/gresearch/spark/diff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
try:
from pyspark.sql.connect.dataframe import DataFrame as ConnectDataFrame
has_connect = True
except ModuleNotFoundError:
except ImportError:
has_connect = False


Expand Down
2 changes: 1 addition & 1 deletion python/gresearch/spark/parquet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
try:
from pyspark.sql.connect.readwriter import DataFrameReader as ConnectDataFrameReader
has_connect = True
except ModuleNotFoundError:
except ImportError:
has_connect = False


Expand Down

0 comments on commit 2362923

Please sign in to comment.