Skip to content

Commit

Permalink
catch one more exception
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-ob committed Aug 19, 2024
1 parent 5b54f02 commit 661c2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaflow/plugins/snowpark/snowpark_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def package_init(self, flow, step_name, environment):
try:
# Snowflake is a soft dependency.
from snowflake.snowpark import Session
except (NameError, ImportError):
except (NameError, ImportError, ModuleNotFoundError):
raise SnowflakeException(
"Could not import module 'snowflake'.\n\nInstall Snowflake "
"Python package (https://pypi.org/project/snowflake/) first.\n"
Expand Down

0 comments on commit 661c2ba

Please sign in to comment.