/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/__init__.py

  • Committer: Farkas Szilveszter
  • Date: 2008-03-03 17:46:23 UTC
  • mto: (423.1.22 trunk) (435.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 435.
  • Revision ID: szilveszter@szilveszter-desktop-20080303174623-2klme166r65z8wv0
A fix for the bad symlinks bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
965
965
        
966
966
        # Add'em to the ListStore
967
967
        for item in dirs:
968
 
            statinfo = os.stat(self.path + os.sep + item)
 
968
            try:
 
969
                statinfo = os.stat(self.path + os.sep + item)
 
970
            except OSError, e:
 
971
                if e.errno == 40:
 
972
                    continue
 
973
                else:
 
974
                    raise
969
975
            liststore.append([ gtk.STOCK_DIRECTORY,
970
976
                               True,
971
977
                               item,
1026
1032
            else:
1027
1033
                st = _('unknown')
1028
1034
            
1029
 
            statinfo = os.stat(self.path + os.sep + item)
 
1035
            try:
 
1036
                statinfo = os.stat(self.path + os.sep + item)
 
1037
            except OSError, e:
 
1038
                if e.errno == 40:
 
1039
                    continue
 
1040
                else:
 
1041
                    raise
1030
1042
            liststore.append([gtk.STOCK_FILE,
1031
1043
                              False,
1032
1044
                              item,