- fixes E722 errors from latest version of flake8 - requires us to not use 'bare except:' and catch BaseException instead