From 587ba8539f83a304b5d0f94d5f88048aca829f71 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sun, 27 Oct 2024 00:06:20 +0200 Subject: [PATCH] Fix makedirs --- auth/getskin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/getskin.py b/auth/getskin.py index 808b1c4..cc0e3b1 100755 --- a/auth/getskin.py +++ b/auth/getskin.py @@ -21,11 +21,11 @@ def dlskin(user): if "SKIN" in textures: skin = urlopen(textures["SKIN"]["url"]).read() - makedirs("skin") + makedirs("skin", exist_ok=True) open("skin/%s.png" % user, "wb").write(skin) if "CAPE" in textures: skin = urlopen(textures["CAPE"]["url"]).read() - makedirs("cape") + makedirs("cape", exist_ok=True) open("cape/%s.png" % user, "wb").write(cape) if __name__ == "__main__":