Permalink
Browse files

exit if the ChangeLog file can not be found

  • Loading branch information...
1 parent 7882c37 commit 5d2bc476ce9da041616a2b7a7a383f334c2cff9c @mapleoin committed Jan 2, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 git_tarballs
View
@@ -47,6 +47,8 @@ def get_changelog_from_tarball(tar_name):
if f.endswith('ChangeLog'))
t = tar.getmember(changelog_file)
changelog = tar.extractfile(t).read()
+ except StopIteration:
+ sys.exit("Could not find a 'ChangeLog' file. ")
finally:
tar.close()
return changelog

0 comments on commit 5d2bc47

Please sign in to comment.