Skip to content

Commit

Permalink
Include suggestions of @jamadden.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 19, 2019
1 parent 3c630ac commit 41088e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zc/recipe/cmmi/__init__.py
Expand Up @@ -176,7 +176,7 @@ def build(self):
self.patch, is_temp = download(
self.patch,
md5sum=self.options.get('patch-md5sum'))
except Exception:
except BaseException:
# If download/checksum of the patch fails, leaving
# the tmp dir won't be helpful.
shutil.rmtree(tmp)
Expand All @@ -200,7 +200,7 @@ def build(self):
shutil.rmtree(tmp)
finally:
os.chdir(here)
except Exception:
except BaseException:
shutil.rmtree(dest)
if os.path.exists(tmp):
logger.error("cmmi failed: %s", tmp)
Expand Down

0 comments on commit 41088e1

Please sign in to comment.