diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 0c9c94d0f05..02a55c12542 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1847,6 +1847,7 @@ _PyExc_Init(void) PRE_INIT(ReferenceError) PRE_INIT(BufferError) PRE_INIT(MemoryError) + PRE_INIT(BufferError) PRE_INIT(Warning) PRE_INIT(UserWarning) PRE_INIT(DeprecationWarning) @@ -1908,6 +1909,7 @@ _PyExc_Init(void) POST_INIT(ReferenceError) POST_INIT(BufferError) POST_INIT(MemoryError) + POST_INIT(BufferError) POST_INIT(Warning) POST_INIT(UserWarning) POST_INIT(DeprecationWarning)