diff hgext/releasenotes.py @ 33784:589fda7895da

releasenotes: minor bug fix for index error while serializing Differential Revision: https://phab.mercurial-scm.org/D356
author Rishabh Madan <rishabhmadan96@gmail.com>
date Sat, 12 Aug 2017 09:21:42 +0530
parents 3748098d072a
children 6a49c74b1e8f
line wrap: on
line diff
--- a/hgext/releasenotes.py	Thu Aug 03 15:31:54 2017 +0200
+++ b/hgext/releasenotes.py	Sat Aug 12 09:21:42 2017 +0530
@@ -426,7 +426,7 @@
 
             lines.append('')
 
-    if lines[-1]:
+    if lines and lines[-1]:
         lines.append('')
 
     return '\n'.join(lines)