File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 22
33import logging
44from typing import Dict , Optional , Union , cast
5+
56from databricks .sdk .errors import DatabricksError
67
78logger = logging .getLogger ('databricks.sdk' )
@@ -82,7 +83,7 @@ def _is_unexpected_exception_loading_user_namespace(e: Exception) -> bool:
8283 # spawned Python subprocesses, resulting in this class throwing an
8384 # pyspark.errors.exceptions.base.PySparkRuntimeError. The SDK does not depend on PySpark, so we
8485 # need to check the type and module name directly.
85- if type (e ).__name__ == 'PySparkRuntimeError' and e .__module__ == 'pyspark.errors.exceptions.base' :
86+ if type (e ).__name__ == 'PySparkRuntimeError' and e .__module__ == 'pyspark.errors.exceptions.base' :
8687 return False
8788 return True
8889
You can’t perform that action at this time.
0 commit comments