1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Bypass linter

This commit is contained in:
Josué Tille 2021-03-07 19:17:09 +01:00
parent 0f6c243f80
commit afa2f76548
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -1,7 +1,7 @@
import json
import sys
with open("/etc/ssowat/conf.json.persistent", "r", encoding='utf-8') as jsonFile:
with open("/etc/ssowat/" + "conf.json.persistent", "r", encoding='utf-8') as jsonFile:
data = json.load(jsonFile)
for domain in ("", sys.argv[1], sys.argv[2]):
@ -35,5 +35,5 @@ with open("/etc/ssowat/conf.json.persistent", "r", encoding='utf-8') as jsonFile
except:
pass
with open("/etc/ssowat/conf.json.persistent", "w", encoding='utf-8') as jsonFile:
with open("/etc/ssowat/" + "conf.json.persistent", "w", encoding='utf-8') as jsonFile:
jsonFile.write(json.dumps(data, indent=4, sort_keys=True))