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 trigger
|
||||
from time import sleep
|
||||
import traceback
|
||||
|
||||
|
||||
class RetweetBot(object):
|
||||
|
@ -195,6 +196,6 @@ if __name__ == "__main__":
|
|||
while True:
|
||||
bot.flow()
|
||||
sleep(6)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
bot.shutdown()
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import pytoml as toml
|
||||
import time
|
||||
import traceback
|
||||
|
||||
from retootbot import RetootBot
|
||||
from retweetbot import RetweetBot
|
||||
|
@ -22,6 +23,6 @@ if __name__ == '__main__':
|
|||
statuses = mbot.retoot(statuses)
|
||||
statuses = tbot.flow(statuses)
|
||||
time.sleep(1)
|
||||
except Exception as e:
|
||||
print e
|
||||
except:
|
||||
traceback.print_exc()
|
||||
tbot.shutdown()
|
||||
|
|
Loading…
Reference in a new issue