1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update util.py

This commit is contained in:
Yolley 2017-06-20 15:45:01 +03:00 committed by GitHub
parent c168feea32
commit 328cabead6

View File

@ -4,6 +4,7 @@ import threading
import re
import sys
import six
import traceback
from six import string_types
# Python3 queue support.
@ -56,8 +57,8 @@ class WorkerThread(threading.Thread):
self.done_event.set()
except Queue.Empty:
pass
except:
logger.debug("Exception occurred")
except Exception as e:
logger.error(type(e).__name__ + " occurred, args=" + str(e.args) + "\n" + traceback.format_exc())
self.exc_info = sys.exc_info()
self.exception_event.set()