Skip to content
This repository was archived by the owner on May 28, 2026. It is now read-only.

Commit 896af4b

Browse files
committed
refactor(server): rfc server handler functions declared noexcept, as no exceptions thrown
1 parent 55ab8dc commit 896af4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pyrfc/_cyrfc.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ cdef RFC_RC metadataLookup(
15431543
const SAP_UC* functionName,
15441544
RFC_ATTRIBUTES rfcAttributes,
15451545
RFC_FUNCTION_DESC_HANDLE *funcDescHandle
1546-
) with gil:
1546+
) noexcept with gil:
15471547
global server_functions
15481548
function_name = wrapString(functionName)
15491549
if function_name not in server_functions:
@@ -1572,7 +1572,7 @@ cdef get_server_context(RFC_CONNECTION_HANDLE rfcHandle, RFC_ERROR_INFO* serverE
15721572

15731573
return server_context
15741574

1575-
cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO* serverErrorInfo) with gil:
1575+
cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO* serverErrorInfo) noexcept with gil:
15761576
cdef RFC_RC rc
15771577
cdef RFC_ERROR_INFO errorInfo
15781578
cdef RFC_ATTRIBUTES attributes

0 commit comments

Comments
 (0)