Skip to content

Commit

Permalink
bindings/python: Fix exception specifier
Browse files Browse the repository at this point in the history
This fixes the following warning:

  warning: core.pyx:8:9: Only extern functions can throw C++ exceptions.
  • Loading branch information
neuschaefer committed Jul 9, 2024
1 parent 47d9c4d commit 8672e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/python/rgbmatrix/core.pxd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from . cimport cppinc

cdef class Canvas:
cdef cppinc.Canvas *_getCanvas(self) except +
cdef cppinc.Canvas *_getCanvas(self) except *

cdef class FrameCanvas(Canvas):
cdef cppinc.FrameCanvas *__canvas
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/rgbmatrix/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from libc.stdint cimport uint8_t, uint32_t, uintptr_t
import cython

cdef class Canvas:
cdef cppinc.Canvas* _getCanvas(self) except +:
cdef cppinc.Canvas* _getCanvas(self) except *:
raise Exception("Not implemented")

def SetImage(self, image, int offset_x = 0, int offset_y = 0, unsafe=True):
Expand Down

0 comments on commit 8672e47

Please sign in to comment.