Skip to content

Commit

Permalink
Warn on emptyfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Corsaro committed Feb 23, 2016
1 parent 272aab2 commit 4e5d5be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tubing/ext/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ def close(self):
MultipartUpload=self.part_info,
)
else:
logger.warn("s3.MultipartUploader [%s/%s] got empty " \
"set, no file created" % (
self.bucket,
self.key,
))
self.abort()

def abort(self):
Expand Down

0 comments on commit 4e5d5be

Please sign in to comment.