Skip to content

Commit

Permalink
refactor(server): rfc server handler functions declared noexcept, as …
Browse files Browse the repository at this point in the history
…no exceptions thrown
  • Loading branch information
bsrdjan committed Jan 8, 2024
1 parent 55ab8dc commit 896af4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyrfc/_cyrfc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ cdef RFC_RC metadataLookup(
const SAP_UC* functionName,
RFC_ATTRIBUTES rfcAttributes,
RFC_FUNCTION_DESC_HANDLE *funcDescHandle
) with gil:
) noexcept with gil:
global server_functions
function_name = wrapString(functionName)
if function_name not in server_functions:
Expand Down Expand Up @@ -1572,7 +1572,7 @@ cdef get_server_context(RFC_CONNECTION_HANDLE rfcHandle, RFC_ERROR_INFO* serverE

return server_context

cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO* serverErrorInfo) with gil:
cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO* serverErrorInfo) noexcept with gil:
cdef RFC_RC rc
cdef RFC_ERROR_INFO errorInfo
cdef RFC_ATTRIBUTES attributes
Expand Down

0 comments on commit 896af4b

Please sign in to comment.