add type check before applying 'browser' option (fixes #1358)

This commit is contained in:
Mike Fährmann
2021-03-06 18:15:32 +01:00
parent 5cf593a00a
commit 94faf8c85a
3 changed files with 4 additions and 2 deletions

View File

@@ -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":

View File

@@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.17.0"
__version__ = "1.17.1-dev"