Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Oct 31, 2024
1 parent a700ba1 commit f1d8782
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion databricks/sdk/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
from typing import Dict, Optional, Union, cast

from databricks.sdk.errors import DatabricksError

logger = logging.getLogger('databricks.sdk')
Expand Down Expand Up @@ -82,7 +83,7 @@ def _is_unexpected_exception_loading_user_namespace(e: Exception) -> bool:
# spawned Python subprocesses, resulting in this class throwing an
# pyspark.errors.exceptions.base.PySparkRuntimeError. The SDK does not depend on PySpark, so we
# need to check the type and module name directly.
if type(e).__name__ == 'PySparkRuntimeError' and e.__module__ == 'pyspark.errors.exceptions.base':
if type(e).__name__ == 'PySparkRuntimeError' and e.__module__ == 'pyspark.errors.exceptions.base':
return False
return True

Expand Down

0 comments on commit f1d8782

Please sign in to comment.