diff -r e0f16317668e -r 15f18dc8b56a canfestival/canfestival.py --- a/canfestival/canfestival.py Thu Nov 22 23:39:54 2018 +0100 +++ b/canfestival/canfestival.py Fri Nov 23 00:33:04 2018 +0100 @@ -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)