canfestival/canfestival.py
changeset 2418 5587c490a070
parent 1997 d9e8fb47340f
child 2437 105c20fdeb19
--- a/canfestival/canfestival.py	Tue Oct 02 17:18:09 2018 +0300
+++ b/canfestival/canfestival.py	Tue Oct 02 18:08:49 2018 +0300
@@ -451,7 +451,7 @@
         # Create a new copy of the model with DCF loaded with PDO mappings for desired location
         try:
             master, pointers = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs(), "OD_%s" % prefix)
-        except config_utils.PDOmappingException, e:
+        except config_utils.PDOmappingException as e:
             raise Exception(e.message)
         # Do generate C file.
         res = gen_cfile.GenerateFile(Gen_OD_path, master, pointers)