From a4921558f37989e4554d2af418c71b0542c77c47 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 5 Oct 2014 18:26:25 +0200 Subject: [PATCH] Fix error in update script [untested] https://forum.minetest.net/viewtopic.php?p=156986#p156986 --- update_from_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_from_db.py b/update_from_db.py index 123b200..2aefcf7 100755 --- a/update_from_db.py +++ b/update_from_db.py @@ -31,7 +31,7 @@ def addpage(page): pages = int(l["pages"]) for s in l["skins"]: f = open(skinsdir + "character_" + str(i) + ".png", "wb") - f.write(base64.b64decode(s["img"])) + f.write(base64.b64decode(bytes(s["img"], 'utf-8'))) f.close() f = open(metadir + "character_" + str(i) + ".txt", "w") f.write(str(s["name"]) + '\n')