# HG changeset patch # User Sylvain Thénault # Date 1295432596 -3600 # Node ID 027c93dfba0a024f98c34f1ffd97966a7b5e4751 # Parent 5ae2bc554c23daf1b6444d04953b7af7770df8a1 [c-c list] don't crash if there are no 'version' attribute in pkginfo diff -r 5ae2bc554c23 -r 027c93dfba0a cwctl.py --- a/cwctl.py Wed Jan 19 11:22:39 2011 +0100 +++ b/cwctl.py Wed Jan 19 11:23:16 2011 +0100 @@ -235,7 +235,7 @@ tinfo = cwcfg.cube_pkginfo(cube) tversion = tinfo.version cfgpb.add_cube(cube, tversion) - except ConfigurationError, ex: + except (ConfigurationError, AttributeError), ex: tinfo = None tversion = '[missing cube information: %s]' % ex print '* %s %s' % (cube.ljust(namesize), tversion)