Compare commits
37 commits
2a2ef61fc4
...
f7fda52fd0
Author | SHA1 | Date | |
---|---|---|---|
f7fda52fd0 | |||
385620717c | |||
ec6e872163 | |||
c03d298a58 | |||
52cf00ef9c | |||
0cb9b6cd95 | |||
a51036d6f2 | |||
01b022128d | |||
690a9c954e | |||
f57f0796eb | |||
385831d735 | |||
72ff5aea12 | |||
797ea3ae12 | |||
aaa11c3b60 | |||
6968c38e68 | |||
450562f534 | |||
8dd56dd859 | |||
90f47fa9d6 | |||
d18fa897a0 | |||
48a0f3819c | |||
80558a241d | |||
d9729a68ff | |||
f3550d7dc0 | |||
e023f87b35 | |||
706d80c2c8 | |||
6ac300d737 | |||
737aa69024 | |||
e9c8f1049e | |||
38a24e4e06 | |||
9f5b420095 | |||
031e146499 | |||
00c01ac934 | |||
df345e36a1 | |||
43802196ca | |||
413a18a5d0 | |||
f94e2d8191 | |||
bd00f03411 |
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue