mirror of
https://github.com/unitedstates/congress.git
synced 2025-12-25 01:00:04 -05:00
Yaml safe-loader for Beanstalk contrib processing (#279)
This commit is contained in:
@@ -55,7 +55,7 @@ def init_guard(reconnect=False):
|
|||||||
global _Config, _Connection
|
global _Config, _Connection
|
||||||
if _Config is None:
|
if _Config is None:
|
||||||
with open('config.yml', 'r') as conffile:
|
with open('config.yml', 'r') as conffile:
|
||||||
config = yaml.load(conffile)
|
config = yaml.load(conffile, yaml.SafeLoader)
|
||||||
assert 'beanstalk' in config
|
assert 'beanstalk' in config
|
||||||
assert 'connection' in config['beanstalk']
|
assert 'connection' in config['beanstalk']
|
||||||
assert 'host' in config['beanstalk']['connection']
|
assert 'host' in config['beanstalk']['connection']
|
||||||
|
|||||||
Reference in New Issue
Block a user