Fixed some bugs related to extended tweets

This commit is contained in:
2016-10-03 22:54:54 -05:00
parent 2fdbcbc152
commit 378d277a98
7 changed files with 38 additions and 16 deletions

View File

@@ -26,8 +26,9 @@ def stream_threaded(func, *args, **kwargs):
def new_func(*a, **k):
try:
func(**k)
except:
except exception as msg:
log.error("Error in stream with args: %r" % (a,))
log.error(msg.message)
pub.sendMessage("stream-error", session=a[0])
thread = threading.Thread(target=new_func, args=args, kwargs=kwargs)