Skip to content

Commit f1d8782

Browse files
committed
fmt
1 parent a700ba1 commit f1d8782

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

databricks/sdk/runtime/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import logging
44
from typing import Dict, Optional, Union, cast
5+
56
from databricks.sdk.errors import DatabricksError
67

78
logger = 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

0 commit comments

Comments
 (0)