plugins/canfestival/canfestival.py
changeset 341 d3ae1f0e0220
parent 336 ae3488c79283
child 361 331d698e1118
--- 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 :