jakewaldron / PlexEmail

This script aggregates all new TV, movie and music releases for the past configured time then optionally writes to your web directory and sends out an email.
206 stars 32 forks source link

error on get friend list #48

Open segator opened 8 years ago

segator commented 8 years ago

Checking the app logs I see the next error:

2016-09-05 19:38:05,116 - INFO:getSharedUserEmails: url = https://plex.tv/pms/friends/all 2016-09-05 19:38:05,122 - INFO:Starting new HTTPS connection (1): plex.tv 2016-09-05 19:38:06,374 - INFO:getSharedUserEmails: response = <Response [200]> 2016-09-05 19:38:06,375 - ERROR:Logging an uncaught exception Traceback (most recent call last): File "/app/plexemail/scripts/plexEmail.py", line 1659, in sharedEmails = getSharedUserEmails() File "/app/plexemail/scripts/plexEmail.py", line 332, in getSharedUserEmails logging.info('getSharedUserEmails: response = ' + str(response.text)) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 12682: ordinal not in range(128)

jakewaldron commented 7 years ago

For now, you should be able to remove line 332 in plexEmail.py and it should work. I will put in a fix during the next release.

jakewaldron commented 7 years ago

I just pushed new changes to the master branch that has a fix for this. Could you please try it?