From 72ea2d0632bf8bd7cded5ed29dd2b5bd4ffda24f Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 21 Jan 2008 07:58:16 +0000 Subject: [PATCH] catch index error --- deluge/ui/gtkui/aboutdialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/aboutdialog.py b/deluge/ui/gtkui/aboutdialog.py index 58abb3566..83f160e4c 100644 --- a/deluge/ui/gtkui/aboutdialog.py +++ b/deluge/ui/gtkui/aboutdialog.py @@ -50,7 +50,10 @@ class AboutDialog: "aboutdialog") self.about.set_position(gtk.WIN_POS_CENTER) self.about.set_name("Deluge") - self.about.set_version(deluge.common.get_version() + "r" + deluge.common.get_revision()) + try: + 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_artists(["Andrew Wedderburn", "Andrew Resch"]) self.about.set_translator_credits(_("translator-credits"))