Skip to content

Commit

Permalink
Import AVError directly
Browse files Browse the repository at this point in the history
  • Loading branch information
daveisfera committed Nov 1, 2023
1 parent 45597c1 commit 02b787c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion av/audio/resampler.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ cdef class AudioResampler:
output.append(self.graph.pull())
except EOFError:
break
except av.utils.AVError as e:
except av.AVError as e:
if e.errno != errno.EAGAIN:
raise
break
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def pull_until_blocked(graph):
while True:
try:
frames.append(graph.pull())
except av.utils.AVError as e:
except av.AVError as e:
if e.errno != errno.EAGAIN:
raise
return frames
Expand Down

0 comments on commit 02b787c

Please sign in to comment.