Browse Source

[raz] Currently need basic Key class as 404 on directories via stats_key()

Romain Rigaux 4 years ago
parent
commit
7eaeb4069f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      desktop/libs/aws/src/aws/s3/s3connection.py

+ 2 - 1
desktop/libs/aws/src/aws/s3/s3connection.py

@@ -128,7 +128,8 @@ class UrlBucket(Bucket):
       k.handle_restore_headers(response)
       k.handle_addl_headers(response.getheaders())
     else:
-      k  = None
+      # Currently needed as 404 on directories via stats_key()
+      k = self.key_class(self, key_name)
 
     return k