add type check before applying 'browser' option (fixes #1358)
This commit is contained in:
@@ -216,7 +216,7 @@ class Extractor():
|
||||
headers.clear()
|
||||
|
||||
browser = self.config("browser") or self.browser
|
||||
if browser:
|
||||
if browser and isinstance(browser, str):
|
||||
browser, _, platform = browser.lower().partition(":")
|
||||
|
||||
if not platform or platform == "auto":
|
||||
|
||||
Reference in New Issue
Block a user