From 0a9a74f6e21d174148d3796fffb079ff80feb394 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 9 Oct 2023 15:52:58 +0300 Subject: Cast image_elem["style"] to string --- plugins/ScraperSourcePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ScraperSourcePlugin.py') diff --git a/plugins/ScraperSourcePlugin.py b/plugins/ScraperSourcePlugin.py index dd7e757..b45846b 100644 --- a/plugins/ScraperSourcePlugin.py +++ b/plugins/ScraperSourcePlugin.py @@ -219,7 +219,7 @@ class Plugin(PluginInterface): ): match = re.match( r"background-image:\s*url\((?P.*?)\)", - image_elem["style"], + cast(str, image_elem["style"]), ) if match is None: raise Exception( -- cgit v1.3