1
0
mirror of https://github.com/sjlongland/tornado-news.git synced 2025-09-13 10:03:14 +10:00

tornadonews: Explicitly specify YAML loader

This is needed for newer versions of the `yaml` module.
This commit is contained in:
Stuart Longland 2022-05-09 08:26:04 +10:00
parent 1b906b760e
commit c620a12d8e
Signed by: stuartl
GPG Key ID: 35DC19275EC93E3B

View File

@ -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()