connectors/PYRO/__init__.py
changeset 218 71fddab24be9
parent 203 cb9901076a21
child 231 f1db3ce8f40a
--- a/connectors/PYRO/__init__.py	Fri Aug 22 15:30:09 2008 +0200
+++ b/connectors/PYRO/__init__.py	Fri Aug 22 15:35:11 2008 +0200
@@ -44,7 +44,7 @@
         A function that catch a pyro exceptions, write error to logger
         and return defaul value when it happen
         """
-        def cather_func(*args,**kwargs):
+        def catcher_func(*args,**kwargs):
             try:
                 return func(*args,**kwargs)
             except PyroError,e:
@@ -52,7 +52,7 @@
                 pluginsroot.logger.write_error(str(e))
                 pluginsroot._Disconnect()
                 return default
-        return cather_func
+        return catcher_func
 
     # Check connection is effective. 
     # lambda is for getattr of GetPLCstatus to happen inside catcher