diff -r a347459df3a4 -r 62aaabbf8812 PLCControler.py --- a/PLCControler.py Tue Oct 17 11:09:01 2017 +0300 +++ b/PLCControler.py Tue Oct 17 11:29:20 2017 +0300 @@ -912,8 +912,8 @@ programfile.close() self.ProgramFilePath = filepath return program_text, errors, warnings - except PLCGenException, e: - errors.append(e.message) + except PLCGenException, ex: + errors.append(ex.message) else: errors.append("No project opened") return "", errors, warnings