Skip to content

Commit

Permalink
fix(playwright engine): bug in checking nstbrowser_config type
Browse files Browse the repository at this point in the history
  • Loading branch information
D4Vinci committed Jan 30, 2025
1 parent 148103f commit ae60c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapling/engines/pw.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _cdp_url_logic(self) -> str:
"""
cdp_url = self.cdp_url
if self.nstbrowser_mode:
if self.nstbrowser_config and type(self.nstbrowser_config) is Dict:
if self.nstbrowser_config and isinstance(self.nstbrowser_config, dict):
config = self.nstbrowser_config
else:
query = NSTBROWSER_DEFAULT_QUERY.copy()
Expand Down

0 comments on commit ae60c2c

Please sign in to comment.