Changeset 7658 for trunk/src/gajim.py

Show
Ignore:
Timestamp:
12/15/06 11:57:25 (2 years ago)
Author:
junglecow
Message:
  • In [7647], reading of PID file was moved out of try..except block. Fixed.
  • [PyOpenSSL] Small fix to error handling.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r7647 r7658  
    156156                # probably file not found 
    157157                return False 
    158         pid = int(pf.read().strip()) 
    159         pf.close() 
     158 
     159        try: 
     160                pid = int(pf.read().strip()) 
     161                pf.close() 
     162        except: 
     163                traceback.print_exc() 
     164                # PID file exists, but something happened trying to read PID 
     165                # Could be 0.10 style empty PID file, so assume Gajim is running 
     166                return True 
    160167 
    161168        if os.name == 'nt':