Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Mar 26, 2023
1 parent 7102383 commit cb0f245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3u8/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _initialize_attributes(self):
base_uri=self.base_uri,
keyobjects=[
find_key(segment_key, self.keys)
for segment_key in segment['keys']],
for segment_key in segment.get('keys', [])],
**segment)
for segment in self.data.get('segments', [])
])
Expand Down

0 comments on commit cb0f245

Please sign in to comment.