prints out a full traceback for exceptions in worker processes
This commit is contained in:
5
chunk.py
5
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):
|
def render_and_save(chunkfile, cave=False):
|
||||||
a = ChunkRenderer(chunkfile)
|
a = ChunkRenderer(chunkfile)
|
||||||
|
try:
|
||||||
return a.render_and_save(cave)
|
return a.render_and_save(cave)
|
||||||
|
except Exception, e:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
raise
|
||||||
|
|
||||||
class ChunkRenderer(object):
|
class ChunkRenderer(object):
|
||||||
def __init__(self, chunkfile):
|
def __init__(self, chunkfile):
|
||||||
|
|||||||
Reference in New Issue
Block a user