diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7c84a97c..6420c54b 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -164,6 +164,7 @@ ## 3.1.10 (2022-04-18) - fix #1249: catch exceptions when requesting with disabling allow_redirects +- fix: catch OSError when running subprocess ## 3.1.9 (2022-04-17) diff --git a/httprunner/make.py b/httprunner/make.py index 8722b965..e540e450 100644 --- a/httprunner/make.py +++ b/httprunner/make.py @@ -172,7 +172,7 @@ def format_pytest_with_black(*python_paths: Text): capture_exception(ex) logger.error(ex) sys.exit(1) - except FileNotFoundError: + except OSError: err_msg = """ missing dependency tool: black install black manually and try again: