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__":