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
commit 3c828feef2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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)