Identify the troublesome file before allowing the traceback
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16607
dcc99617-32d9-48b4-a31d-
7c20da2025e4
# Avoid generating duplicate entries by keeping track of msgids
msgids = dict()
- #print("Reading Dojo resource file %s" % (source))
- bundle = simplejson.load(codecs.open(source, encoding='utf-8', mode='r'))
+ try:
+ bundle = simplejson.load(codecs.open(source, encoding='utf-8', mode='r'))
+ except ValueError:
+ print("Reading Dojo resource file %s" % (source))
+ raise
for key, value in bundle.iteritems():
if value in msgids: