Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ka_task.py
diff options
context:
space:
mode:
authorThomas Jourdan <b.vehikel@googlemail.com>2009-08-25 08:39:33 (GMT)
committer Thomas Jourdan <b.vehikel@googlemail.com>2009-08-25 08:39:33 (GMT)
commit2b7768ebf9d320dcf4b906bcb453092a45c4e1a2 (patch)
tree14ea4825289f98fb1833a2ce9d9c63a52c537428 /ka_task.py
parent96ed4036391c8ee3cb995fe760708be2cffad11b (diff)
Added Voronoi diagram with low resolution sampling.
Diffstat (limited to 'ka_task.py')
-rw-r--r--ka_task.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ka_task.py b/ka_task.py
index b18212b..16e75da 100644
--- a/ka_task.py
+++ b/ka_task.py
@@ -16,6 +16,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import sys
+import traceback
import threading
import gobject
import ka_debug
@@ -69,8 +70,9 @@ class GeneratorTask(object):
print 'result', result
gobject.idle_add(self._on_task_completed, result)
except:
+ traceback.print_exc(file=sys.__stderr__)
ka_debug.err('failed calculating [%s] [%s] [%s]' % \
- (self._task_function, sys.exc_info()[0], sys.exc_info()[1]))
+ (self._task_function, sys.exc_info()[0], sys.exc_info()[1]))
finally:
_leave()