Don't crash if there are no authors
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed, 15 Oct 2008 10:22:29 -0700
changeset 17 eeafcec1814f
parent 16 eccbe49587f2
child 18 928560d49795
Don't crash if there are no authors
alexandria.py
--- a/alexandria.py	Mon Sep 15 15:05:47 2008 -0700
+++ b/alexandria.py	Wed Oct 15 10:22:29 2008 -0700
@@ -259,7 +259,7 @@
     _sort_authors(authors)
     for author in authors[:-1]:
         print '%s,' % _colorize_string('author', author),
-    print '%s' % _colorize_string('author', authors[-1])
+    if len(authors): print '%s' % _colorize_string('author', authors[-1])
     print 'Labels:',
     for tag in paper.tags:
         print '+%s' % _colorize_string('label', tag),