Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rvztz committed Oct 24, 2023
1 parent 2aba262 commit f9d550f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions unstructured/ingest/cli/cmds/hubspot.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import logging
import typing as t
from dataclasses import dataclass

import click
from unstructured.ingest.cli.interfaces import CliMixin, DelimitedString

from unstructured.ingest.cli.base.src import BaseSrcCmd
from unstructured.ingest.cli.interfaces import CliMixin, DelimitedString
from unstructured.ingest.connector.hubspot import HubSpotObjectTypes
from unstructured.ingest.interfaces import BaseConfig
from unstructured.ingest.logger import logger
Expand Down Expand Up @@ -69,6 +69,7 @@ def get_cli_options() -> t.List[click.Option]:
]
return options


def get_base_src_cmd() -> BaseSrcCmd:
cmd_cls = BaseSrcCmd(
cmd_name="hubspot",
Expand Down
3 changes: 2 additions & 1 deletion unstructured/ingest/connector/hubspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def _fetch_obj(self, check_only=False):
get_by_id_method = self._resolve_getter()
try:
response = get_by_id_method(
self.object_id, properties=([] if check_only else self.content_properties)
self.object_id,
properties=([] if check_only else self.content_properties),
)
except NotFoundException as e:
logger.error(e)
Expand Down

0 comments on commit f9d550f

Please sign in to comment.