# HG changeset patch # User greg # Date 1241422319 -7200 # Node ID d3ae1f0e0220f634ae8deafe78849f63e26403c8 # Parent 651b8fb572e7074cbc0a5e866558e9046a676567 Get PDOmapping exception from canfestival plugin diff -r 651b8fb572e7 -r d3ae1f0e0220 plugins/canfestival/canfestival.py --- a/plugins/canfestival/canfestival.py Mon May 04 09:31:16 2009 +0200 +++ b/plugins/canfestival/canfestival.py Mon May 04 09:31:59 2009 +0200 @@ -233,7 +233,10 @@ prefix = "_".join(map(str, current_location)) Gen_OD_path = os.path.join(buildpath, "OD_%s.c"%prefix ) # Create a new copy of the model with DCF loaded with PDO mappings for desired location - master, pointers = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs(),"OD_%s"%prefix) + try: + master, pointers = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs(),"OD_%s"%prefix) + except config_utils.PDOmappingException, e: + raise Exception, e.message # Do generate C file. res = gen_cfile.GenerateFile(Gen_OD_path, master, pointers) if res :