Fix in start func
This commit is contained in:
parent
a05c3abada
commit
ce867e9046
1 changed files with 5 additions and 5 deletions
|
|
@ -123,12 +123,14 @@ def run(url):
|
||||||
url=load_config()
|
url=load_config()
|
||||||
|
|
||||||
|
|
||||||
def start(url):
|
def start():
|
||||||
|
|
||||||
# Get config from /etc/pastafari or ~/.config/pastafari
|
# Get config from /etc/pastafari or ~/.config/pastafari
|
||||||
|
|
||||||
# Load configuration
|
# Load configuration
|
||||||
|
|
||||||
|
url=load_config()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
||||||
run(url)
|
run(url)
|
||||||
|
|
@ -143,7 +145,5 @@ if __name__=='__main__':
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, catch_signal)
|
signal.signal(signal.SIGINT, catch_signal)
|
||||||
|
|
||||||
url=load_config()
|
start()
|
||||||
|
|
||||||
start(url)
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue