Fix wrong call to Sleepy()

And place a log call so we can gather exceptions to lose the
general exception in the future.
This commit is contained in:
Philipp Hörist 2017-08-19 22:21:01 +02:00
parent 763eba0acc
commit e8399dc2ed
1 changed files with 2 additions and 1 deletions

View File

@ -1383,9 +1383,10 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream):
self.privacy_default_list = None
try:
self.sleeper = common.sleepy.Sleepy()
self.sleeper = sleepy.Sleepy()
HAS_IDLE = True
except Exception:
log.warning('Error while calling Sleepy()', exc_info=True)
HAS_IDLE = False
self.gmail_last_tid = None