Skip to content
Snippets Groups Projects
Commit 8c78a14c authored by junglecow's avatar junglecow
Browse files

- In [7647], reading of PID file was moved out of try..except block. Fixed.

 - [PyOpenSSL] Small fix to error handling.
parent c09e6e0b
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,7 @@ class NonBlockingTcp(PlugIn, IdleObject):
except SSLWrapper.Error, e:
print "caught " + str(e)
errnum = gattr(e, 'errno', ERR_OTHER)
if errnum == 0: errnum = ERR_OTHER # unset, but we must put a status
if not errnum: errnum = ERR_OTHER # unset, but we must put a status
errtxt = gattr(e, 'strerror') or repr(e.args)
# Should we really do this? In C, recv() will happily return 0
......@@ -595,7 +595,7 @@ class NonBlockingTcp(PlugIn, IdleObject):
def getName(self):
''' Return the server's name, or 'getHost()' if not available.'''
retval = None
if self._owner: retval = gattr(self._owner, 'name')
retval = gattr(self._owner, 'name')
if retval: return retval
return self.getHost()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment