1
0
mirror of https://github.com/krislamo/Flea synced 2025-09-15 15:19:28 +00:00

Deleted settings.conf. Working State.

This commit is contained in:
2016-03-01 01:37:15 -07:00
parent 47dfb30496
commit 5110004ac4
6 changed files with 28 additions and 22 deletions

43
bin/Flea Normal file
View File

@@ -0,0 +1,43 @@
#!/bin/python
# An IRC bot named Flea
# Copyright (C) 2016 Kris Lamoureux
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
import traceback
import sys
try:
import Flea.Flea
except KeyboardInterrupt:
print "\nGoodbye!"
sys.exit()
except SystemExit:
raise
except:
# Print error, save it to error.txt
# then wait to be closed.
traceback.print_exc()
errorfile = open("error.txt", 'a')
traceback.print_exc(None, errorfile)
errorfile.close()
raw_input()
sys.exit(0)
Flea.Flea.main()