Merge branch 'environmenterror-to-oserror' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal
2020-07-02 08:29:27 +05:30

View File

@@ -165,7 +165,7 @@ def create_tarfile(env, compression_level='9'):
base = OUTPUT_DIR
try:
shutil.rmtree(base)
except EnvironmentError as err:
except OSError as err:
if err.errno != errno.ENOENT:
raise
os.mkdir(base)