mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 06:51:43 +00:00
[wmlunits] fix debug message
(time to move this to Python3...)
This commit is contained in:
parent
142048d071
commit
c182e93441
@ -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""
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user