From 07665f93417eec39c97feef3263c314736a13cca Mon Sep 17 00:00:00 2001 From: Till Maas Date: Nov 22 2010 20:13:42 +0000 Subject: Fix crash when update notes are just "\r\n" Red Hat Bug: https://bugzilla.redhat.com/show_bug.cgi?id=637349 --- diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py index 7021043..869e4ef 100755 --- a/fedora-easy-karma.py +++ b/fedora-easy-karma.py @@ -160,7 +160,7 @@ class FEK_helper(object): wrapped = [] # remove trailing empty paragraphs - while paragraphs[-1] == "": + while paragraphs and paragraphs[-1] == "": paragraphs.pop() for p in paragraphs: