From 09392fe3b40fc5de709b79684e2e87339a2dd8aa Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 28 Aug 2010 22:55:17 -0400 Subject: [PATCH] prints out a full traceback for exceptions in worker processes --- chunk.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chunk.py b/chunk.py index 3037294..c599529 100644 --- a/chunk.py +++ b/chunk.py @@ -45,7 +45,12 @@ transparent_blocks = set([0, 8, 9, 18, 20, 37, 38, 39, 40, 50, 51, 52, 53, 59, 6 def render_and_save(chunkfile, cave=False): a = ChunkRenderer(chunkfile) - return a.render_and_save(cave) + try: + return a.render_and_save(cave) + except Exception, e: + import traceback + traceback.print_exc() + raise class ChunkRenderer(object): def __init__(self, chunkfile):