backport r64751
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index c0254ff..eeebb5c 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -2045,6 +2045,7 @@
     PRE_INIT(SystemError)
     PRE_INIT(ReferenceError)
     PRE_INIT(MemoryError)
+    PRE_INIT(BufferError)
     PRE_INIT(Warning)
     PRE_INIT(UserWarning)
     PRE_INIT(DeprecationWarning)
@@ -2112,6 +2113,7 @@
     POST_INIT(SystemError)
     POST_INIT(ReferenceError)
     POST_INIT(MemoryError)
+    POST_INIT(BufferError)
     POST_INIT(Warning)
     POST_INIT(UserWarning)
     POST_INIT(DeprecationWarning)