Fix handling of meta=None in S3FilesStore.persist_file

This commit is contained in:
Konstantin Lopuhin 2016-03-25 18:35:55 +03:00 committed by Paul Tremberth
parent 5ae8863d3d
commit 84371ffb22
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class S3FilesStore(object):
Bucket=self.bucket,
Key=key_name,
Body=buf,
Metadata={k: str(v) for k, v in six.iteritems(meta)},
Metadata={k: str(v) for k, v in six.iteritems(meta or {})},
ACL=self.POLICY,
**extra)
else: