made more verbose errors for TypeError

This commit is contained in:
Nicholas St. Germain 2018-12-06 12:04:02 -06:00
parent 59bfb4a567
commit 743f35842e
3 changed files with 12 additions and 11 deletions

View file

@ -36,7 +36,7 @@ class TautulliAPI(object):
try:
sessions = [TautulliStream(**session) for session in get['sessions']]
except TypeError as e:
self.logger.error('TypeError has occurred : %s', e)
self.logger.error('TypeError has occurred : %s while creating TautulliStream structure', e)
return
for session in sessions: