diff -r 316ee9fff395 -r 5587c490a070 PLCControler.py --- a/PLCControler.py Tue Oct 02 17:18:09 2018 +0300 +++ b/PLCControler.py Tue Oct 02 18:08:49 2018 +0300 @@ -460,7 +460,7 @@ programfile.close() self.ProgramFilePath = filepath return program_text, errors, warnings - except PLCGenException, ex: + except PLCGenException as ex: errors.append(ex.message) else: errors.append("No project opened")