also rescue ENOENT when browsing directories in case user enters
authorgc <gc>
Sun, 24 Apr 2005 21:04:50 +0000 (21:04 +0000)
committergc <gc>
Sun, 24 Apr 2005 21:04:50 +0000 (21:04 +0000)
/proc (or rare case of file removed in the middle)

bin/booh-gui

index 9ce78678901b20234343b875ae96937fc5f6e984..8eeac85aa28db22cb2cb3b6f06a9c0292d83db2c 100755 (executable)
@@ -1341,7 +1341,7 @@ def new_album
                                 Dir.entries(dir.chomp).each { |file|
                                     total[entry2type(file)] += 1
                                 }
-                            rescue Errno::EACCES
+                            rescue Errno::EACCES, Errno::ENOENT
                             end
                         }
                         src_nb.set_markup(utf8(_("<span size='small'><i>%s images and %s videos</i></span>") % [ total['image'], total['video'] ]))