Commit b9742833 authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Do not create objects for non-photos for albums

parent 6b5cb6f4
......@@ -70,6 +70,7 @@ def save_photo(request, archive_file, photo, album):
except (OSError, AttributeError):
messages.add_message(request, messages.WARNING,
_("Ignoring {}").format(photo_filename))
photo_obj.delete()
else:
photo_obj.save()
......
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