diff --git a/av/audio/resampler.pyx b/av/audio/resampler.pyx index 1214da317..bd5085704 100644 --- a/av/audio/resampler.pyx +++ b/av/audio/resampler.pyx @@ -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 diff --git a/tests/test_filters.py b/tests/test_filters.py index 6201f59ba..31cbb46f6 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py @@ -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