PLCControler.py
changeset 1875 62aaabbf8812
parent 1872 866fb3ab8778
child 1878 fb73a6b6622d
--- 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