Fix in send_info_daemon.py

This commit is contained in:
Antonio de la Rosa 2020-06-28 23:53:02 +02:00
parent 6e8fc34c94
commit 4510c41ec7

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/python3 -u
import psutil
import json
@ -44,16 +44,16 @@ def start():
if not yes_config:
print("Sorry, cannot load config file")
exit(1)
exit("Sorry, cannot load config file")
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']:
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']