We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912974c commit 1deb910Copy full SHA for 1deb910
ssh2/session.pxd
@@ -19,6 +19,6 @@ cimport c_ssh2
19
20
cdef class Session:
21
cdef c_ssh2.LIBSSH2_SESSION *_session
22
- cdef c_ssh2.LIBSSH2_AGENT * init_connect_agent(self) nogil
+ cdef c_ssh2.LIBSSH2_AGENT * init_connect_agent(self) nogil except NULL
23
cdef c_ssh2.LIBSSH2_AGENT * _agent_init(self)
24
cdef object socket
ssh2/session.pyx
@@ -169,7 +169,7 @@ cdef class Session:
169
raise MemoryError
170
return agent
171
172
- cdef c_ssh2.LIBSSH2_AGENT * init_connect_agent(self) nogil:
+ cdef c_ssh2.LIBSSH2_AGENT * init_connect_agent(self) nogil except NULL:
173
agent = c_ssh2.libssh2_agent_init(self._session)
174
if agent is NULL:
175
with gil:
0 commit comments