From cbf16b8f74769c53e573d1b13d41f0f534903266 Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 30 Dec 2017 01:15:22 +0100 Subject: [PATCH] changed ticketfrei.py to python3 #7 --- ticketfrei.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ticketfrei.py b/ticketfrei.py index 17461b6..e16ebdb 100644 --- a/ticketfrei.py +++ b/ticketfrei.py @@ -1,9 +1,10 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import pytoml as toml import time import traceback import os +import sys import datetime from retootbot import RetootBot @@ -30,7 +31,7 @@ if __name__ == '__main__': statuses = tbot.flow(statuses) time.sleep(60) except KeyboardInterrupt: - print "Good bye. Remember to restart the bot!" + print("Good bye. Remember to restart the bot!") except: - traceback.print_exc() + tbot.log(traceback.extract_tb(sys.exc_info()[2])) tbot.shutdown()