Skip to content

Commit

Permalink
Use apache.spark provider without kubernetes (#14187)
Browse files Browse the repository at this point in the history
Catches Name Error on importing optional kubernetes package.
  • Loading branch information
Khrol committed Feb 11, 2021
1 parent 4336f4c commit f9c9e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/apache/spark/hooks/spark_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

try:
from airflow.kubernetes import kube_client
except ImportError:
except (ImportError, NameError):
pass


Expand Down

0 comments on commit f9c9e9c

Please sign in to comment.