Changeset 401:15ad3c16ee11 for src/mlx/singleton.py
- Timestamp:
- 12/27/12 08:04:59 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/singleton.py
r298 r401 1 2 from util import utf2unicode 1 3 2 4 import os … … 72 74 print "singleton._PipeServer.run: failed to read from the pipe" 73 75 except Exception, e: 74 print "singleton._PipeServer.run: exception:", str(e) 76 print "singleton._PipeServer.run: exception:", 77 print utf2unicode(str(e)) 75 78 finally: 76 79 win32pipe.DisconnectNamedPipe(handle) 77 80 win32file.CloseHandle(handle) 78 81 except Exception, e: 79 print "singleton._PipeServer.run: fatal exception:", str(e) 82 print "singleton._PipeServer.run: fatal exception:", 83 print utf2unicode(str(e)) 80 84 81 85 def _createPipe(self): … … 141 145 return 142 146 except Exception, e: 143 print "SingleInstance._notifySingleton: failed:", str(e) 147 print "SingleInstance._notifySingleton: failed:", 148 print utf2unicode(str(e)) 144 149 time.sleep(0.5) 145 150 … … 190 195 self._raiseCallback() 191 196 except Exception, e: 192 print "singleton._SocketServer.run: fatal exception:", str(e) 197 print "singleton._SocketServer.run: fatal exception:", 198 print utf2unicode(str(e)) 193 199 194 200 class SingleInstance(object): … … 254 260 return 255 261 except Exception, e: 256 print "singleton.SingleInstance._notifySingleton: failed:", str(e) 262 print "singleton.SingleInstance._notifySingleton: failed:", 263 print utf2unicode(str(e)) 257 264 time.sleep(0.5) 258 265
Note:
See TracChangeset
for help on using the changeset viewer.