Skip to content

Commit

Permalink
linter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
affan00733 committed Sep 18, 2023
1 parent 598264f commit 2830548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions evadb/executor/load_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
# limitations under the License.
from evadb.database import EvaDBDatabase
from evadb.executor.abstract_executor import AbstractExecutor
from evadb.executor.executor_utils import ExecutorError
from evadb.executor.load_csv_executor import LoadCSVExecutor
from evadb.executor.load_multimedia_executor import LoadMultimediaExecutor
from evadb.parser.types import FileFormatType
from evadb.plan_nodes.load_data_plan import LoadDataPlan
from evadb.executor.executor_utils import ExecutorError


class LoadDataExecutor(AbstractExecutor):
def __init__(self, db: EvaDBDatabase, node: LoadDataPlan):
Expand All @@ -30,8 +31,8 @@ def exec(self, *args, **kwargs):
"""

# invoke the appropriate executor
if self.node.file_options["file_format"] == None:
err_msg = f"Invalid file format, please use supported file formats: CSV | VIDEO | IMAGE | DOCUMENT | PDF"
if self.node.file_options["file_format"] is None:
err_msg = "Invalid file format, please use supported file formats: CSV | VIDEO | IMAGE | DOCUMENT | PDF"
raise ExecutorError(err_msg)
if self.node.file_options["file_format"] in [
FileFormatType.VIDEO,
Expand Down

0 comments on commit 2830548

Please sign in to comment.