diff options
author | jcass <john.cass77@gmail.com> | 2015-12-24 22:01:08 +0200 |
---|---|---|
committer | jcass <john.cass77@gmail.com> | 2015-12-24 22:01:08 +0200 |
commit | 36e96f7af03c4f096acc59aa605403585a5450e6 (patch) | |
tree | fc27502fa390c72659b168f244f78afbba5f73c8 /pydora | |
parent | 0d2a42c65aae90295b3c9e9e717375d114b9eee4 (diff) | |
download | pydora-36e96f7af03c4f096acc59aa605403585a5450e6.tar.bz2 pydora-36e96f7af03c4f096acc59aa605403585a5450e6.tar.xz pydora-36e96f7af03c4f096acc59aa605403585a5450e6.zip |
Fix pep8 violations.
Diffstat (limited to 'pydora')
-rw-r--r-- | pydora/utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pydora/utils.py b/pydora/utils.py index c2a5323..756810a 100644 --- a/pydora/utils.py +++ b/pydora/utils.py | |||
@@ -127,8 +127,10 @@ def iterate_forever(func, *args, **kwargs): | |||
127 | output = func(*args, **kwargs) | 127 | output = func(*args, **kwargs) |
128 | except errors.ParameterMissing as e: | 128 | except errors.ParameterMissing as e: |
129 | if isinstance(playlistItem, AdItem): | 129 | if isinstance(playlistItem, AdItem): |
130 | if not playlistItem.tracking_tokens or len(playlistItem.tracking_tokens) == 0: | 130 | if (not playlistItem.tracking_tokens or |
131 | # Ad item does not contain any tracking tokens, yield without registering | 131 | len(playlistItem.tracking_tokens) == 0): |
132 | # Ad item does not contain any tracking tokens, yield | ||
133 | # without registering | ||
132 | yield playlistItem | 134 | yield playlistItem |
133 | # Something else went wrong, re-raise | 135 | # Something else went wrong, re-raise |
134 | raise e | 136 | raise e |