Skip to content

Commit ced0373

Browse files
CopilotVinciGit00
andcommitted
Fix E402 errors in smart_scraper_graph.py by moving imports to top
Co-authored-by: VinciGit00 <88108002+VinciGit00@users.noreply.github.com>
1 parent 2fc5187 commit ced0373

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scrapegraphai/graphs/smart_scraper_graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
from pydantic import BaseModel
99

10-
# Initialize logger
11-
logger = logging.getLogger(__name__)
12-
1310
from ..nodes import (
1411
ConditionalNode,
1512
FetchNode,
@@ -21,6 +18,9 @@
2118
from .abstract_graph import AbstractGraph
2219
from .base_graph import BaseGraph
2320

21+
# Initialize logger
22+
logger = logging.getLogger(__name__)
23+
2424

2525
class SmartScraperGraph(AbstractGraph):
2626
"""
@@ -97,7 +97,7 @@ def _create_graph(self) -> BaseGraph:
9797
)
9898

9999
# Use logging instead of print for better production practices
100-
if 'request_id' in response and 'result' in response:
100+
if "request_id" in response and "result" in response:
101101
logger.info(f"Request ID: {response['request_id']}")
102102
logger.info(f"Result: {response['result']}")
103103
else:

0 commit comments

Comments
 (0)