Fix in send_info_daemon.py
This commit is contained in:
parent
6e8fc34c94
commit
4510c41ec7
1 changed files with 7 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/python3 -u
|
||||||
|
|
||||||
import psutil
|
import psutil
|
||||||
import json
|
import json
|
||||||
|
|
@ -44,16 +44,16 @@ def start():
|
||||||
|
|
||||||
|
|
||||||
if not yes_config:
|
if not yes_config:
|
||||||
print("Sorry, cannot load config file")
|
|
||||||
exit(1)
|
exit("Sorry, cannot load config file")
|
||||||
|
|
||||||
if not 'DEFAULT' in config:
|
if not 'DEFAULT' in config:
|
||||||
print("Sorry, config file need [DEFAULT] section")
|
|
||||||
exit(1)
|
exit("Sorry, config file need [DEFAULT] section")
|
||||||
|
|
||||||
if not 'url_server' in config['DEFAULT']:
|
if not 'url_server' in config['DEFAULT']:
|
||||||
print("Sorry, config file need url_server variable in [DEFAULT] section")
|
|
||||||
exit(1)
|
exit("Sorry, config file need url_server variable in [DEFAULT] section")
|
||||||
|
|
||||||
url=config['DEFAULT']['url_server']
|
url=config['DEFAULT']['url_server']
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue