mirror of
https://github.com/matrix-org/synapse-s3-storage-provider.git
synced 2024-10-23 07:29:40 +00:00
Merge pull request #5 from matrix-org/erikj/404_correctly
Correctly catch 404 errors
This commit is contained in:
commit
54c58922de
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class _S3DownloadThread(threading.Thread):
|
|||
try:
|
||||
resp = s3.get_object(Bucket=self.bucket, Key=self.key)
|
||||
except botocore.exceptions.ClientError as e:
|
||||
if e.response['Error']['Code'] == "404":
|
||||
if e.response['Error']['Code'] in ("404", "NoSuchKey",):
|
||||
reactor.callFromThread(self.deferred.callback, None)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue