We should catch missing pre-built bundles cleanly.
2014-02-18 09:12:27,751 - cumulus - INFO - Using pre-built bundle: web/Running.zip
2014-02-18 09:12:28,041 - cumulus - INFO - Starting upload of Running.zip to s3://com-cdon-web-bundles/web-preprod/0.1.0/bundle-web-preprod-0.1.0-running.zip
2014-02-18 09:12:28,041 - cumulus - ERROR - [Errno 2] No such file or directory: 'web/Running.zip'
Traceback (most recent call last):
File "/usr/local/bin/cumulus", line 32, in <module>
cumulus_ds.main()
File "/usr/local/lib/python2.7/site-packages/cumulus_ds/__init__.py", line 96, in main
bundle_manager.build_bundles()
File "/usr/local/lib/python2.7/site-packages/cumulus_ds/bundle_manager.py", line 41, in build_bundles
_upload_bundle(bundle_path, bundle_type)
File "/usr/local/lib/python2.7/site-packages/cumulus_ds/bundle_manager.py", line 210, in _upload_bundle
key.set_contents_from_filename(bundle_path, replace=True)
File "/usr/local/lib/python2.7/site-packages/boto/s3/key.py", line 1311, in set_contents_from_filename
with open(filename, 'rb') as fp:
IOError: [Errno 2] No such file or directory: 'web/Running.zip'
We should catch missing pre-built bundles cleanly.