catch index error

This commit is contained in:
Marcos Pinto 2008-01-21 07:58:16 +00:00
parent f08fcc68d3
commit 72ea2d0632
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,10 @@ class AboutDialog:
"aboutdialog") "aboutdialog")
self.about.set_position(gtk.WIN_POS_CENTER) self.about.set_position(gtk.WIN_POS_CENTER)
self.about.set_name("Deluge") self.about.set_name("Deluge")
try:
self.about.set_version(deluge.common.get_version() + "r" + deluge.common.get_revision()) self.about.set_version(deluge.common.get_version() + "r" + deluge.common.get_revision())
except IndexError:
self.about.set_version(deluge.common.get_version())
self.about.set_authors(["Andrew Resch", "Marcos Pinto"]) self.about.set_authors(["Andrew Resch", "Marcos Pinto"])
self.about.set_artists(["Andrew Wedderburn", "Andrew Resch"]) self.about.set_artists(["Andrew Wedderburn", "Andrew Resch"])
self.about.set_translator_credits(_("translator-credits")) self.about.set_translator_credits(_("translator-credits"))