Show
Ignore:
Timestamp:
01/13/07 23:35:41 (23 months ago)
Author:
asterix
Message:

merge diff from trunc to 0.11 branch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11/src/common/connection_handlers.py

    r7787 r7829  
    2525import sys 
    2626 
    27 from time import localtime, strftime, gmtime, timezone 
     27from time import localtime, strftime, gmtime 
    2828from calendar import timegm 
    2929 
     
    887887                c = f.read() 
    888888                f.close() 
    889                 card = common.xmpp.Node(node = c) 
     889                try: 
     890                        card = common.xmpp.Node(node = c) 
     891                except: 
     892                        # We are unable to parse it. Remove it 
     893                        os.remove(path_to_file) 
     894                        return None 
    890895                vcard = self.node_to_dict(card) 
    891896                if vcard.has_key('PHOTO'):