etherlab/EthercatMaster.py
changeset 2418 5587c490a070
parent 2407 5f2b1bb464a0
child 2423 2c7b7ae24d57
--- a/etherlab/EthercatMaster.py	Tue Oct 02 17:18:09 2018 +0300
+++ b/etherlab/EthercatMaster.py	Tue Oct 02 18:08:49 2018 +0300
@@ -249,7 +249,7 @@
                     EtherCATConfigParser.LoadXMLString(config_xmlfile.read())
                 if error is None:
                     config_is_saved = True
-            except Exception, e:
+            except Exception as e:
                 error = e.message
             config_xmlfile.close()
 
@@ -270,7 +270,7 @@
                     ProcessVariablesParser.LoadXMLString(process_xmlfile.read())
                 if error is None:
                     process_is_saved = True
-            except Exception, e:
+            except Exception as e:
                 error = e.message
             process_xmlfile.close()