Skip to content
This repository
Browse code

* S3/CloudFront.py: Don't fail if there are no cfinval

  requests.



git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@477 830e0280-6d2a-0410-9c65-932aecc39d9d
  • Loading branch information...
commit 16f6c3e9b3d373284533358318424b3096e87740 1 parent d065ce3
Michal Ludvig mludvig authored

Showing 2 changed files with 10 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 0 ChangeLog
  2. +5 2 S3/CloudFront.py
5 ChangeLog
... ... @@ -1,5 +1,10 @@
1 1 2011-04-11 Michal Ludvig <mludvig@logix.net.nz>
2 2
  3 + * S3/CloudFront.py: Don't fail if there are no cfinval
  4 + requests.
  5 +
  6 +2011-04-11 Michal Ludvig <mludvig@logix.net.nz>
  7 +
3 8 * S3/PkgInfo.py: Updated to 1.1.0-beta1
4 9 * NEWS: Updated.
5 10 * s3cmd.1: Regenerated.
7 S3/CloudFront.py
@@ -721,8 +721,11 @@ def invalinfo(args):
721 721 requests.append(str(cfuri))
722 722 else:
723 723 inval_list = cf.GetInvalList(cfuri)
724   - for i in inval_list['inval_list'].info['InvalidationSummary']:
725   - requests.append("/".join(["cf:/", cfuri.dist_id(), i["Id"]]))
  724 + try:
  725 + for i in inval_list['inval_list'].info['InvalidationSummary']:
  726 + requests.append("/".join(["cf:/", cfuri.dist_id(), i["Id"]]))
  727 + except:
  728 + continue
726 729 for req in requests:
727 730 cfuri = S3Uri(req)
728 731 inval_info = cf.GetInvalInfo(cfuri)

0 comments on commit 16f6c3e

Please sign in to comment.
Something went wrong with that request. Please try again.