From 521430961e1dd6dfa1107a707dedc1a83deac004 Mon Sep 17 00:00:00 2001 From: Dave Johansen Date: Thu, 26 Oct 2023 15:53:33 -0600 Subject: [PATCH] Import AVError directly --- av/audio/resampler.pyx | 2 +- tests/test_filters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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