Skip to content
Snippets Groups Projects
Commit a8d2f4c5 authored by Davies Liu's avatar Davies Liu Committed by Reynold Xin
Browse files

[SPARK-9942] [PYSPARK] [SQL] ignore exceptions while try to import pandas

If pandas is broken (can't be imported, raise other exceptions other than ImportError), pyspark can't be imported, we should ignore all the exceptions.

Author: Davies Liu <davies@databricks.com>

Closes #8173 from davies/fix_pandas.
parent 864de8ea
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ from pyspark.sql.functions import UserDefinedFunction
try:
import pandas
has_pandas = True
except ImportError:
except Exception:
has_pandas = False
__all__ = ["SQLContext", "HiveContext", "UDFRegistration"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment