diff -r 316ee9fff395 -r 5587c490a070 canfestival/canfestival.py --- 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)