diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-10-09 15:52:58 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-10-09 15:52:58 +0300 |
| commit | 0a9a74f6e21d174148d3796fffb079ff80feb394 (patch) | |
| tree | e61cc4cb8844bf5cf73728923ac182fa323b577c /plugins/ScraperSourcePlugin.py | |
| parent | 80940c46bbdc6c1e5cf8e4ab13e2bae0683db8b1 (diff) | |
Cast image_elem["style"] to string
Diffstat (limited to 'plugins/ScraperSourcePlugin.py')
| -rw-r--r-- | plugins/ScraperSourcePlugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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<url>.*?)\)", - image_elem["style"], + cast(str, image_elem["style"]), ) if match is None: raise Exception( |
