aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcass <john.cass77@gmail.com>2015-12-29 06:59:04 +0200
committerjcass <john.cass77@gmail.com>2015-12-29 06:59:04 +0200
commit1b6cd8133bf26a41b77f2bb00c94713b555d61bc (patch)
tree87299dd65852be1d0f7e52b8ee4dd50156aeea5a
parentd26ea7a236dc9def54508bbb86712400e59666ed (diff)
downloadpydora-1b6cd8133bf26a41b77f2bb00c94713b555d61bc.tar.bz2
pydora-1b6cd8133bf26a41b77f2bb00c94713b555d61bc.tar.xz
pydora-1b6cd8133bf26a41b77f2bb00c94713b555d61bc.zip
Fix pep8 violations.
-rw-r--r--pandora/client.py3
-rw-r--r--pandora/models/pandora.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/pandora/client.py b/pandora/client.py
index 4a8a26d..3cc2538 100644
--- a/pandora/client.py
+++ b/pandora/client.py
@@ -263,7 +263,8 @@ class APIClient(BaseAPIClient):
263 263
264 if not station_id: 264 if not station_id:
265 raise errors.ParameterMissing("The 'station_id' param must be " 265 raise errors.ParameterMissing("The 'station_id' param must be "
266 "defined, got: '{}'".format(station_id)) 266 "defined, got: '{}'"
267 .format(station_id))
267 268
268 ad_metadata = self.get_ad_metadata(ad_token) 269 ad_metadata = self.get_ad_metadata(ad_token)
269 ad_metadata["stationId"] = station_id 270 ad_metadata["stationId"] = station_id
diff --git a/pandora/models/pandora.py b/pandora/models/pandora.py
index 3a901e5..946e5fc 100644
--- a/pandora/models/pandora.py
+++ b/pandora/models/pandora.py
@@ -232,8 +232,8 @@ class AdItem(PlaylistModel):
232 if self.tracking_tokens: 232 if self.tracking_tokens:
233 self._api_client.register_ad(station_id, self.tracking_tokens) 233 self._api_client.register_ad(station_id, self.tracking_tokens)
234 else: 234 else:
235 raise ParameterMissing('No ad tracking tokens available ' 235 raise ParameterMissing('No ad tracking tokens available for '
236 'for registration.') 236 'registration.')
237 237
238 def prepare_playback(self): 238 def prepare_playback(self):
239 try: 239 try: