Status code: 200
title: Deutschlands erstes Portal für offene Daten in Berlin
description: Berlin hat jetzt das erste deutsche Open-Data-Portal errichtet und spielt den Vorreiter für mehr Demokratie.
site_name: iX Magazin
force_title: Deutschlands erstes Portal für offene Daten in Berlin
Traceback (most recent call last):
File "/Users/<user>/git/social2blog/linkpreview_tests.py", line 37, in <module>
print("image:", preview.image)
File "/Users/<user>/.local/share/virtualenvs/social2blog-daDco7w8/lib/python3.9/site-packages/linkpreview/helpers.py", line 33, in __get__
val = f(obj)
File "/Users/<user>/.local/share/virtualenvs/social2blog-daDco7w8/lib/python3.9/site-packages/linkpreview/linkpreview.py", line 50, in image
return self._find_attribute("image")
File "/Users/<user>/.local/share/virtualenvs/social2blog-daDco7w8/lib/python3.9/site-packages/linkpreview/linkpreview.py", line 32, in _find_attribute
value = getattr(obj, name)
File "/Users/<user>/.local/share/virtualenvs/social2blog-daDco7w8/lib/python3.9/site-packages/linkpreview/preview/schemabase.py", line 67, in image
return self._extract_image(item["image"])
File "/Users/<user>/.local/share/virtualenvs/social2blog-daDco7w8/lib/python3.9/site-packages/linkpreview/preview/schemabase.py", line 56, in _extract_image
if 'url' not in v:
TypeError: argument of type 'NoneType' is not iterable
I believe the problem was newly created in v0.8.2, because that link used to work with earlier versions of linkpreview.
The following test code will throw an exception
The output is
I believe the problem was newly created in v0.8.2, because that link used to work with earlier versions of linkpreview.