mirror of
https://github.com/ioistired/pleroma-ebooks.git
synced 2024-11-20 02:14:52 +01:00
removed legacy code
This commit is contained in:
parent
02add51698
commit
91d4d7303a
6
main.py
6
main.py
@ -23,11 +23,7 @@ cfg = {
|
||||
"max_thread_length": 15
|
||||
}
|
||||
|
||||
try:
|
||||
cfg.update(json.load(open('config.json', 'r')))
|
||||
except:
|
||||
shutil.copy2("config.sample.json", "config.json")
|
||||
cfg.update(json.load(open('config.json', 'r')))
|
||||
cfg.update(json.load(open('config.json', 'r')))
|
||||
|
||||
if "client" not in cfg:
|
||||
print("No application info -- registering application with {}".format(cfg['site']))
|
||||
|
Loading…
Reference in New Issue
Block a user