Skip to content

Commit

Permalink
Better exception raised in case of numpy missing (apache#28722)
Browse files Browse the repository at this point in the history
We should also raise optional feature error when numpy is missing
  • Loading branch information
potiuk authored Jan 4, 2023
1 parent 93fed0c commit 8c5ee5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/providers/amazon/aws/transfers/sql_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
from tempfile import NamedTemporaryFile
from typing import TYPE_CHECKING, Iterable, Mapping, Sequence

import numpy as np

try:
import numpy as np
import pandas as pd
except ImportError as e:
from airflow.exceptions import AirflowOptionalProviderFeatureException
Expand Down

0 comments on commit 8c5ee5e

Please sign in to comment.