Get PDOmapping exception from canfestival plugin
authorgreg
Mon, 04 May 2009 09:31:59 +0200
changeset 341 d3ae1f0e0220
parent 340 651b8fb572e7
child 342 80e5876bc53b
Get PDOmapping exception from canfestival plugin
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 :