File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -149,13 +149,11 @@ def __next__(self):
149
149
# Confirm the frame has an appropriate length.
150
150
self ._validate_frame_length (length )
151
151
152
- # Don't try to parse the body if we didn't get a frame we know about:
153
- # there's nothing we can do with it anyway.
154
- if f is not None :
155
- try :
156
- f .parse_body (memoryview (self .data [9 :9 + length ]))
157
- except InvalidFrameError :
158
- raise FrameDataMissingError ("Frame data missing or invalid" )
152
+ # Try to parse the frame body
153
+ try :
154
+ f .parse_body (memoryview (self .data [9 :9 + length ]))
155
+ except InvalidFrameError :
156
+ raise FrameDataMissingError ("Frame data missing or invalid" )
159
157
160
158
# At this point, as we know we'll use or discard the entire frame, we
161
159
# can update the data.
You can’t perform that action at this time.
0 commit comments