Fixed bug in attachment code

This commit is contained in:
2018-09-06 12:55:18 +02:00
parent 08bf63c2ee
commit e4fa32b8e4
2 changed files with 7 additions and 7 deletions

View File

@@ -230,7 +230,7 @@ class Attachment:
from pillar.web import system_util
attachments = node_properties.get('attachments', {})
attachments = node_properties.get('properties', {}).get('attachments', {})
attachment = attachments.get(slug)
if not attachment:
raise self.NoSuchSlug(slug)