make error messages great (again)
This commit is contained in:
parent
d745ad6520
commit
5ccfe328ea
|
@ -5,6 +5,7 @@ import requests
|
||||||
import pytoml as toml
|
import pytoml as toml
|
||||||
import trigger
|
import trigger
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
class RetweetBot(object):
|
class RetweetBot(object):
|
||||||
|
@ -195,6 +196,6 @@ if __name__ == "__main__":
|
||||||
while True:
|
while True:
|
||||||
bot.flow()
|
bot.flow()
|
||||||
sleep(6)
|
sleep(6)
|
||||||
except Exception as e:
|
except:
|
||||||
print(e)
|
traceback.print_exc()
|
||||||
bot.shutdown()
|
bot.shutdown()
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import pytoml as toml
|
import pytoml as toml
|
||||||
import time
|
import time
|
||||||
|
import traceback
|
||||||
|
|
||||||
from retootbot import RetootBot
|
from retootbot import RetootBot
|
||||||
from retweetbot import RetweetBot
|
from retweetbot import RetweetBot
|
||||||
|
@ -22,6 +23,6 @@ if __name__ == '__main__':
|
||||||
statuses = mbot.retoot(statuses)
|
statuses = mbot.retoot(statuses)
|
||||||
statuses = tbot.flow(statuses)
|
statuses = tbot.flow(statuses)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
except Exception as e:
|
except:
|
||||||
print e
|
traceback.print_exc()
|
||||||
tbot.shutdown()
|
tbot.shutdown()
|
||||||
|
|
Loading…
Reference in a new issue