mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Appease lint
User args for something
This commit is contained in:
parent
8f0ac0d025
commit
a871e09994
12
main.py
12
main.py
@ -150,8 +150,8 @@ if __name__ == '__main__':
|
||||
|
||||
def sigterm_handler(*args):
|
||||
print() # for newline
|
||||
logger.info("Recieved SIGTERM, stopping Crafty")
|
||||
console.info("Recieved SIGTERM, stopping Crafty")
|
||||
logger.info(f"Recieved SIGINT [{args[0]}], stopping Crafty...")
|
||||
console.info(f"Recieved SIGINT [{args[0]}], stopping Crafty...")
|
||||
tasks_manager._main_graceful_exit()
|
||||
Crafty.universal_exit()
|
||||
|
||||
@ -162,8 +162,8 @@ if __name__ == '__main__':
|
||||
Crafty.cmdloop()
|
||||
except KeyboardInterrupt:
|
||||
print() # for newline
|
||||
logger.info("Recieved SIGINT, stopping Crafty")
|
||||
console.info("Recieved SIGINT, stopping Crafty")
|
||||
logger.info(f"Recieved SIGINT, stopping Crafty...")
|
||||
console.info(f"Recieved SIGINT, stopping Crafty...")
|
||||
tasks_manager._main_graceful_exit()
|
||||
Crafty.universal_exit()
|
||||
else:
|
||||
@ -174,8 +174,8 @@ if __name__ == '__main__':
|
||||
break
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
logger.info("Recieved SIGINT, stopping Crafty")
|
||||
console.info("Recieved SIGINT, stopping Crafty")
|
||||
logger.info(f"Recieved SIGINT, stopping Crafty...")
|
||||
console.info(f"Recieved SIGINT, stopping Crafty...")
|
||||
break
|
||||
tasks_manager._main_graceful_exit()
|
||||
Crafty.universal_exit()
|
||||
|
Loading…
Reference in New Issue
Block a user