PLCControler.py
changeset 2418 5587c490a070
parent 1973 cc7a46953471
child 2437 105c20fdeb19
--- 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")