Browse Source

Fix makedirs

master
mid-kid 4 weeks ago
parent
commit
587ba8539f
  1. 4
      auth/getskin.py

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

Loading…
Cancel
Save