diff --git a/pytest_abra/runner.py b/pytest_abra/runner.py index b2f83ff..1e310ca 100644 --- a/pytest_abra/runner.py +++ b/pytest_abra/runner.py @@ -164,7 +164,7 @@ class Runner: # command_arguments.append("on") # Disable capturing. With -s set, prints will go to console as if pytest is not there. - if os.environ["PWDEBUG"] == "1": + if os.environ.get("PWDEBUG") == "1": command_arguments.append("-s") # headed