mirror of
https://github.com/wassname/flask-s3.git
synced 2026-06-27 15:50:06 +08:00
Python3 fix for reading hashes
This commit is contained in:
+1
-1
@@ -370,7 +370,7 @@ def create_all(app, user=None, password=None, bucket_name=None,
|
||||
if app.config['FLASKS3_ONLY_MODIFIED']:
|
||||
try:
|
||||
hashes_object = s3.get_object(Bucket=bucket_name, Key='.file-hashes')
|
||||
hashes = json.loads(str(hashes_object['Body'].read()))
|
||||
hashes = json.loads(str(hashes_object['Body'].read().decode()))
|
||||
except ClientError as e:
|
||||
logger.warn("No file hashes found: %s" % e)
|
||||
hashes = None
|
||||
|
||||
Reference in New Issue
Block a user