mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-17 17:47:55 +00:00
Use yaml safe_load
This commit is contained in:
1 parent
01e6b405be
commit
3677548a82
7 files changed
+11
-11
No files matched your search
@@ -76,7 +76,7 @@ def rows_v2(server, json):
|
||||
|
||||
|
||||
def main():
|
||||
config = yaml.load(open(sys.argv[1]))
|
||||
config = yaml.safe_load(open(sys.argv[1]))
|
||||
valid_until = int(time.time() / (3600 * 24)) * 1000 * 3600 * 24
|
||||
|
||||
server_name = config["server_name"]
|
||||
|
||||
Reference in new issue
Block a user