make error messages great (again)

This commit is contained in:
b3yond 2017-07-11 22:05:46 +02:00
parent d745ad6520
commit 5ccfe328ea
2 changed files with 6 additions and 4 deletions

View File

@ -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()

View File

@ -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()