diff options
Diffstat (limited to 'ipapython/log_manager.py')
-rw-r--r-- | ipapython/log_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/log_manager.py b/ipapython/log_manager.py index cf3611e0f..7e4545d14 100644 --- a/ipapython/log_manager.py +++ b/ipapython/log_manager.py @@ -1148,7 +1148,7 @@ class LogManager(object): stream = cfg.get("stream") log_handler = cfg.get("log_handler") if filename: - if cfg.has_key("stream"): + if "stream" in cfg: raise ValueError("both filename and stream are specified, must be one or the other, config: %s" % cfg) path = os.path.abspath(filename) filemode = cfg.get('filemode', 'a') |