mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Made it not raise an exception when Ctrl-C'ed.
This commit is contained in:
parent
6fdde226c7
commit
fd22981d9d
@ -132,7 +132,7 @@ def upgradeFromFormerBotscript(filename):
|
||||
#botscript = __import__(filename)
|
||||
### Eh, just don't forget this.
|
||||
|
||||
if __name__ == '__main__':
|
||||
def main():
|
||||
### Remember to do some optparse stuff here. Especially we need to
|
||||
### remember to be able to upgrade from another created botscript.
|
||||
|
||||
@ -599,3 +599,9 @@ if __name__ == '__main__':
|
||||
you can start your bot script with the command line "./%s". If you're not
|
||||
running a *nix or similar machine, you'll just have to start it like you
|
||||
start all your other Python scripts.""" % (filename, filename))
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user