From cad1c12b7bbe988b96e0c695210968ea80a8d4c8 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 1 Jul 2020 22:39:01 +0200 Subject: [PATCH] Replace EnvironmentError with OSError See 527ff0238a9b607857d98eddade18450bdc4ad73. --- bypy/linux/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index de9b48044..bbd9ab423 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -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)