mumrah/s3-multipart — pull request #12 by bagger (2013-04-12 06:56:05+00:00)
Title: fixed bug when uploading directly

Uploading files less than 5MB when no s3 key exists causing the following error:

> Traceback (most recent call last):
> File "/usr/local/sbin/s3-mp-upload.py", line 155, in
> main(**arg_dict)
> File "/usr/local/sbin/s3-mp-upload.py", line 102, in main
> key.set_contents_from_file(src)
> AttributeError: 'NoneType' object has no attribute 'set_contents_from_file'

This commit fixes it.