equal
deleted
inserted
replaced
48 def catcher_func(*args,**kwargs): |
48 def catcher_func(*args,**kwargs): |
49 try: |
49 try: |
50 return func(*args,**kwargs) |
50 return func(*args,**kwargs) |
51 except PyroError,e: |
51 except PyroError,e: |
52 #pluginsroot.logger.write_error(traceback.format_exc()) |
52 #pluginsroot.logger.write_error(traceback.format_exc()) |
53 pluginsroot.logger.write_error(str(e)) |
53 pluginsroot.logger.write_error(str(e)+"\n") |
54 pluginsroot._Disconnect() |
54 pluginsroot._Disconnect() |
55 return default |
55 return default |
56 return catcher_func |
56 return catcher_func |
57 |
57 |
58 # Check connection is effective. |
58 # Check connection is effective. |