From c620a12d8ec3c1dcfcb5231f21e3ba66943833af Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Mon, 9 May 2022 08:26:04 +1000 Subject: [PATCH] tornadonews: Explicitly specify YAML loader This is needed for newer versions of the `yaml` module. --- tornadonews/tornadonews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornadonews/tornadonews.py b/tornadonews/tornadonews.py index 7520b2a..3729238 100644 --- a/tornadonews/tornadonews.py +++ b/tornadonews/tornadonews.py @@ -425,7 +425,7 @@ def main(): parser.add_argument('config', metavar='CONFIG', type=str, help='Configuration file') args = parser.parse_args() - cfg = yaml.load(open(args.config,'r')) + cfg = yaml.load(open(args.config,'r'), yaml.SafeLoader) logging.basicConfig(level=logging.DEBUG) ioloop = IOLoop.current()