[wmlunits] fix debug message

(time to move this to Python3...)
This commit is contained in:
Allefant 2014-01-28 16:17:47 +01:00
parent 142048d071
commit c182e93441
2 changed files with 3 additions and 3 deletions

View File

@ -1108,7 +1108,7 @@ 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)
filename = os.path.join(path, "%s.html" % (uid.encode("utf8")))
# We probably can come up with something better.
if os.path.exists(filename):
@ -1123,7 +1123,7 @@ def generate_single_unit_reports(addon, isocode, wesnoth):
def html_postprocess_file(filename, isocode, batchlist):
print("postprocessing " + filename.encode("utf8"))
print(u"postprocessing " + repr(filename))
chtml = u""
ehtml = u""

View File

@ -476,7 +476,7 @@ def batch_process():
print(" " + name + " failed")
ef = open(logname, "a")
ef.write("<INTERNAL ERROR>\n")
ef.write("please report as bug")
ef.write("please report as bug\n")
ef.write(str(e))
ef.write("</INTERNAL ERROR>\n")
ef.close()