/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: Szilveszter Farkas (Phanatic)
  • Date: 2008-03-04 14:18:03 UTC
  • mto: (435.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 437.
  • Revision ID: szilveszter.farkas@gmail.com-20080304141803-au95tuxv0oayf9oa
Some missing bits completed. Bad symlinks are ommitted on refresh as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1270
1270
                
1271
1271
            # Add'em to the ListStore
1272
1272
            for item in dirs:
1273
 
                statinfo = os.stat(self.path + os.sep + item)
 
1273
                try:
 
1274
                    statinfo = os.stat(self.path + os.sep + item)
 
1275
                except OSError, e:
 
1276
                    if e.errno == 40:
 
1277
                        continue
 
1278
                    else:
 
1279
                        raise
1274
1280
                liststore.append([gtk.STOCK_DIRECTORY,
1275
1281
                                  True,
1276
1282
                                  item,
1333
1339
                else:
1334
1340
                    st = _('unknown')
1335
1341
                
1336
 
                statinfo = os.stat(self.path + os.sep + item)
 
1342
                try:
 
1343
                    statinfo = os.stat(self.path + os.sep + item)
 
1344
                except OSError, e:
 
1345
                    if e.errno == 40:
 
1346
                        continue
 
1347
                    else:
 
1348
                        raise
1337
1349
                liststore.append([gtk.STOCK_FILE,
1338
1350
                                  False,
1339
1351
                                  item,