Fix bare 'except:' to placate errors in new flake8 version.

- fixes E722 errors from latest version of flake8
- requires us to not use 'bare except:' and catch BaseException instead
This commit is contained in:
Todd Gamblin
2017-10-23 16:51:11 +02:00
parent b98fc48273
commit 5449884b2e
17 changed files with 27 additions and 27 deletions

View File

@@ -177,6 +177,6 @@ def install(self, spec, prefix):
shutil.copy2(filepath, tmppath)
os.remove(filepath)
os.rename(tmppath, filepath)
except:
except (IOError, OSError):
pass
shutil.rmtree(join_path(prefix, "tmp"))