Skip to content

Commit b27ce88

Browse files
emmanuel-ferdmaneinarfCopilot
authored
Raise exception of blend_func issue (#2711)
* Raise exception of `blend_func` issue Signed-off-by: Emmanuel Ferdman <[email protected]> * Update arcade/gl/backends/opengl/context.py Co-authored-by: Copilot <[email protected]> --------- Signed-off-by: Emmanuel Ferdman <[email protected]> Co-authored-by: Einar Forselv <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent d497e25 commit b27ce88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcade/gl/backends/opengl/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def blend_func(self, value: Tuple[int, int] | Tuple[int, int, int, int]):
143143
elif len(value) == 4:
144144
gl.glBlendFuncSeparate(*value)
145145
else:
146-
ValueError("blend_func takes a tuple of 2 or 4 values")
146+
raise ValueError(f"blend_func takes a tuple of 2 or 4 values, got {len(value)}")
147147

148148
@property
149149
def front_face(self) -> str:

0 commit comments

Comments
 (0)