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

- [PyOpenSSL] Small fix to error handling.
This commit is contained in:
junglecow 2006-12-15 10:57:25 +00:00
parent de22ec65de
commit 230a77ba94
1 changed files with 9 additions and 2 deletions

View File

@ -155,8 +155,15 @@ def pid_alive():
except:
# probably file not found
return False
pid = int(pf.read().strip())
pf.close()
try:
pid = int(pf.read().strip())
pf.close()
except:
traceback.print_exc()
# PID file exists, but something happened trying to read PID
# Could be 0.10 style empty PID file, so assume Gajim is running
return True
if os.name == 'nt':
try: