Codebase list mlbstreamer / 681d9b2
Fix exception when no stream is found for game. Tony Cebzanov 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
154154 try:
155155 # media_url = stream["stream"]["complete"]
156156 media_url = stream.url
157 except TypeError:
157 except (TypeError, AttributeError):
158158 raise MLBPlayException("no stream URL for game %d" %(game_id))
159159
160160 offset_timestamp = None