Fix exception when no stream is found for game.
Tony Cebzanov
5 years ago
154 | 154 |
try:
|
155 | 155 |
# media_url = stream["stream"]["complete"]
|
156 | 156 |
media_url = stream.url
|
157 | |
except TypeError:
|
|
157 |
except (TypeError, AttributeError):
|
158 | 158 |
raise MLBPlayException("no stream URL for game %d" %(game_id))
|
159 | 159 |
|
160 | 160 |
offset_timestamp = None
|