mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
feat: Exit with exception, not with exit1
this aligns to how other parts of the code work - leaving "exit" to the outermost caller.
This commit is contained in:
@@ -121,9 +121,8 @@ def test_set_loggers_Filehandler_without_permission(tmp_path):
|
||||
}
|
||||
|
||||
setup_logging_pre()
|
||||
with pytest.raises(SystemExit) as excinfo:
|
||||
with pytest.raises(OperationalException):
|
||||
setup_logging(config)
|
||||
assert excinfo.value.code == 1
|
||||
|
||||
logger.handlers = orig_handlers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user