Changeset 9487:6624445d0225 in orange


Ignore:
Timestamp:
08/21/11 17:07:28 (3 years ago)
Author:
wencanluo <wencanluo@…>
Branch:
default
Convert:
cd6fbaf18f669f87975576ba74d222f3e279c3ed
Message:

Fix a small bug in OWFile. When opening the recentFiles last time has an error. It will occur error next time and cannot be fixed unless deleting the log file. And now, I use try, except to open the file. If there is an error, it will skip to open the file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Data/OWFile.py

    r8042 r9487  
    117117 
    118118        if len(self.recentFiles) > 0 and exists(self.recentFiles[0]): 
    119             self.openFile(self.recentFiles[0], 0, self.symbolDK, self.symbolDC) 
    120  
     119            try: 
     120                self.openFile(self.recentFiles[0], 0, self.symbolDK, self.symbolDC) 
     121            except: 
     122                pass 
    121123        self.connect(self.filecombo, SIGNAL('activated(int)'), self.selectFile) 
    122124 
Note: See TracChangeset for help on using the changeset viewer.