mirror of
https://github.com/sjlongland/tornado-news.git
synced 2025-09-14 02:23:16 +10:00
tornadonews: Explicitly specify YAML loader
This is needed for newer versions of the `yaml` module.
This commit is contained in:
parent
1b906b760e
commit
c620a12d8e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user