From 230a77ba94523bdb2afac70afdc075dfce7b6082 Mon Sep 17 00:00:00 2001 From: junglecow <junglecow@no-mail.com> Date: Fri, 15 Dec 2006 10:57:25 +0000 Subject: [PATCH] - In [7647], reading of PID file was moved out of try..except block. Fixed. - [PyOpenSSL] Small fix to error handling. --- src/gajim.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index bb9403e918..2209623e94 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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: -- GitLab