Commit d501ceb8 authored by Jasper St. Pierre's avatar Jasper St. Pierre
Browse files

extensions: Check if the screenshot exists before using it

parent 3a8a01d0
......@@ -321,7 +321,7 @@ def ajax_details(extension, version=None):
description = extension.description,
link = extension.get_absolute_url(),
icon = extension.icon.url,
screenshot = extension.screenshot.url,
screenshot = extension.screenshot.url if extension.screenshot else None,
shell_version_map = extension.visible_shell_version_map)
if version is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment