From 1fce2de7a4e3ff073ad32bba58e96d5931352b5e Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 16 Jun 2015 12:43:36 +0200 Subject: [PATCH] Pushbullet, don't loop over "None" --- couchpotato/core/notifications/pushbullet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/notifications/pushbullet.py b/couchpotato/core/notifications/pushbullet.py index fc08292..df37b7d 100644 --- a/couchpotato/core/notifications/pushbullet.py +++ b/couchpotato/core/notifications/pushbullet.py @@ -20,7 +20,7 @@ class Pushbullet(Notification): if not data: data = {} # Get all the device IDs linked to this user - devices = self.getDevices() or [None] + devices = self.getDevices() or [] successful = 0 for device in devices: response = self.request( @@ -60,7 +60,7 @@ class Pushbullet(Notification): base64string = base64.encodestring('%s:' % self.conf('api_key'))[:-1] headers = { - "Authorization": "Basic %s" % base64string + 'Authorization': 'Basic %s' % base64string } if cache: