bton/prohibit_sending_empty_emails #100

Open
bton wants to merge 40 commits from bton/prohibit_sending_empty_emails into testing
Showing only changes of commit 8234fd438a - Show all commits

View file

@ -38,6 +38,8 @@ def media_urls(request, hash):
'Age': 0,
'ETag': file.hash,
})
except FileNotFoundError:
return Response(status=status.HTTP_404_NOT_FOUND)
except File.DoesNotExist:
return Response(status=status.HTTP_404_NOT_FOUND)
except EmailAttachment.DoesNotExist:
@ -80,6 +82,8 @@ def thumbnail_urls(request, size, hash):
'ETag': file.hash + "_" + str(size),
})
except FileNotFoundError:
return Response(status=status.HTTP_404_NOT_FOUND)
except File.DoesNotExist:
return Response(status=status.HTTP_404_NOT_FOUND)
except EmailAttachment.DoesNotExist: