We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d456f86 commit b32cbfeCopy full SHA for b32cbfe
pythia-gallery.py
@@ -37,10 +37,7 @@ def render_resource(resource: dict):
37
38
#if "thumbnail" in resource:
39
#else:
40
- try:
41
- thumbnail = resource['thumbnail']
42
- except:
43
- thumbnail = "_static/thumbnails/ProjectPythia_Blue.png"
+ thumbnail = resource.get('thumbnail') or "_static/thumbnails/ProjectPythia_Blue.png"
44
45
# Build tags
46
tags = resource["tags"]
0 commit comments