From 47e1240035c4f943ef1b5a4e36a32f9639ab9d4d Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 1 Apr 2008 19:28:48 +0100 Subject: [PATCH] Bugfix: trying to run a program without a main attribute gave a stacktrace. --- zeroinstall/injector/selections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/injector/selections.py b/zeroinstall/injector/selections.py index e766d15..893137a 100644 --- a/zeroinstall/injector/selections.py +++ b/zeroinstall/injector/selections.py @@ -38,7 +38,7 @@ class Selection(object): id = property(lambda self: self.attrs['id']) version = property(lambda self: self.attrs['version']) feed = property(lambda self: self.attrs.get('from-feed', self.interface)) - main = property(lambda self: self.attrs['main']) + main = property(lambda self: self.attrs.get('main', None)) def __repr__(self): return self.id -- 2.11.4.GIT