aboutsummaryrefslogtreecommitdiff
path: root/pandora/models/ad.py
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-06-08 18:20:57 +0000
committerMike Crute <mike@crute.us>2020-06-08 18:20:57 +0000
commit3681a9b616212656462efa0a9c78722f90cca442 (patch)
tree0199712af2f8abc5635d57d7e18ec63fe6d8b58e /pandora/models/ad.py
parent13b779eafd66a37ad5c50fa9be2bbc7962a73fce (diff)
downloadpydora-3681a9b616212656462efa0a9c78722f90cca442.tar.bz2
pydora-3681a9b616212656462efa0a9c78722f90cca442.tar.xz
pydora-3681a9b616212656462efa0a9c78722f90cca442.zip
Use black for formatting
I don't particularly like the black formatter (does anybody, really?) but it's guaranteed to be consistent so it should prevent nitpicking style.
Diffstat (limited to 'pandora/models/ad.py')
-rw-r--r--pandora/models/ad.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pandora/models/ad.py b/pandora/models/ad.py
index ad4b7b0..48cd302 100644
--- a/pandora/models/ad.py
+++ b/pandora/models/ad.py
@@ -24,8 +24,9 @@ class AdItem(PlaylistModel):
24 if self.tracking_tokens: 24 if self.tracking_tokens:
25 self._api_client.register_ad(station_id, self.tracking_tokens) 25 self._api_client.register_ad(station_id, self.tracking_tokens)
26 else: 26 else:
27 raise ParameterMissing('No ad tracking tokens provided for ' 27 raise ParameterMissing(
28 'registration.') 28 "No ad tracking tokens provided for registration."
29 )
29 30
30 def prepare_playback(self): 31 def prepare_playback(self):
31 try: 32 try: