Added a debug output to accompany a warning.
If there is an error reading or parsing overviewerConfig.js, it prints a warning and continues, but gives no indication of what went wrong. Added a debug line that prints the full traceback.
This commit is contained in:
@@ -19,6 +19,7 @@ import codecs
|
|||||||
import locale
|
import locale
|
||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
|
import traceback
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
@@ -51,6 +52,7 @@ directory.
|
|||||||
except Exception, e:
|
except Exception, e:
|
||||||
if os.path.exists(os.path.join(self.outputdir, "overviewerConfig.js")):
|
if os.path.exists(os.path.join(self.outputdir, "overviewerConfig.js")):
|
||||||
logging.warning("A previous overviewerConfig.js was found, but I couldn't read it for some reason. Continuing with a blank config")
|
logging.warning("A previous overviewerConfig.js was found, but I couldn't read it for some reason. Continuing with a blank config")
|
||||||
|
logging.debug(traceback.format_exc())
|
||||||
self.overviewerConfig = dict(tilesets=dict())
|
self.overviewerConfig = dict(tilesets=dict())
|
||||||
|
|
||||||
def get_tileset_config(self, name):
|
def get_tileset_config(self, name):
|
||||||
|
|||||||
Reference in New Issue
Block a user