BD2KGenomics / s3am

A fast, parallel, streaming multipart uploader for S3
Other
13 stars 6 forks source link

Passing URL pointing at non-existant key gives user-unfriendly error #58

Open hannes-ucsc opened 8 years ago

hannes-ucsc commented 8 years ago
Traceback (most recent call last):
  File "/Users/hannes/workspace/bd2k/s3am/venv/bin/s3am", line 9, in <module>
    load_entry_point('s3am==2.0a1', 'console_scripts', 's3am')()
  File "/Users/hannes/workspace/bd2k/s3am/src/s3am/cli.py", line 43, in try_main
    main( args )
  File "/Users/hannes/workspace/bd2k/s3am/src/s3am/cli.py", line 103, in main
    result = operation.run( )
  File "/Users/hannes/workspace/bd2k/s3am/src/s3am/operations.py", line 1062, in run
    with self.DownloadProgress( key ) as progress:
  File "/Users/hannes/workspace/bd2k/s3am/src/s3am/operations.py", line 1213, in __init__
    self.etag = key.etag
AttributeError: 'NoneType' object has no attribute 'etag'