Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/plexEmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ def getSharedUserEmails():
for elem in parsed:
for name, value in sorted(elem.attrib.items()):
if (name == 'email'):
logging.info('getSharedUserEmails: adding email - ' + value.lower())
emails.append(value.lower())
if value:
logging.info('getSharedUserEmails: adding email - ' + value.lower())
emails.append(value.lower())

logging.info('getSharedUserEmails: Returning shared emails')
logging.debug('getSharedUserEmails: email list - ' + ' '.join(emails))
Expand Down Expand Up @@ -1742,4 +1743,4 @@ def exceptionHandler(type, value, tb):
print 'Emails were not sent because there were no new additions in the timeframe specified.'

con.close()
os.remove(DATABASE_FILE + '_plexemail')
os.remove(DATABASE_FILE + '_plexemail')