Fix code for Python3.
This commit is contained in:
parent
1eb4ed9422
commit
72d93d280a
2
api.py
2
api.py
@ -19,7 +19,7 @@ authorizations = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
with open('./conf.yml') as conf:
|
with open('./conf.yml') as conf:
|
||||||
yaml_conf = yaml.load(conf)
|
yaml_conf = yaml.safe_load(conf)
|
||||||
flask_settings = yaml_conf.get("flask_settings")
|
flask_settings = yaml_conf.get("flask_settings")
|
||||||
api_key = yaml_conf.get("api_key")
|
api_key = yaml_conf.get("api_key")
|
||||||
if os.environ['FLASK_ENV'] == 'development':
|
if os.environ['FLASK_ENV'] == 'development':
|
||||||
|
Loading…
Reference in New Issue
Block a user