Skip to content
Browse files

Lost some exception handling code during last commit

  • Loading branch information...
1 parent 6e68ca6 commit 42ac6a9b5a9a016bd1fc18661f39e95ff1fba774 @maartendamen maartendamen committed Sep 9, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 examples/common/ozwWrapper.py
View
11 examples/common/ozwWrapper.py
@@ -240,13 +240,22 @@ def _getControllerDescription(self):
if node and node._product:
return node._product.name
return 'Unknown Controller'
-
+
def zwcallback(self, args):
+ try:
+ return self._zwcallback(args)
+ except:
+ import sys, traceback
+ print '\n'.join(traceback.format_exception(*sys.exc_info()))
+ raise
+
+ def _zwcallback(self, args):
'''
Callback Handler
@param args: callback dict
'''
+
notifyType = args['notificationType']
self._log.debug('\n%s\n%s (node %s)\n%s', '-' * 30, notifyType, args['nodeId'], '-' * 30)
if notifyType == 'DriverReady':

0 comments on commit 42ac6a9

Please sign in to comment.
Something went wrong with that request. Please try again.