[wmlunits] more debugging
This commit is contained in:
parent
c5dc760cd8
commit
f4434f2df1
1 changed files with 6 additions and 1 deletions
|
@ -1108,7 +1108,12 @@ def generate_single_unit_reports(addon, isocode, wesnoth):
|
|||
for uid, unit in wesnoth.unit_lookup.items():
|
||||
if unit.hidden: continue
|
||||
if "mainline" in unit.campaigns and addon != "mainline": continue
|
||||
filename = os.path.join(path, "%s.html" % (uid.encode("utf8")))
|
||||
htmlname = u"%s.html" % uid
|
||||
try:
|
||||
filename = os.path.join(path, htmlname)
|
||||
except UnicodeDecodeError as e:
|
||||
error_message("Unicode problem: " + repr(path) + " + " + repr(uid) + "\n")
|
||||
raise
|
||||
|
||||
# We probably can come up with something better.
|
||||
if os.path.exists(filename):
|
||||
|
|
Loading…
Add table
Reference in a new issue