Author: dmeyer
Date: Wed Apr 19 18:55:13 2006
New Revision: 1423
Modified:
trunk/beacon/src/crawl.py
Log:
catch inotify errors
Modified: trunk/beacon/src/crawl.py
==============================================================================
--- trunk/beacon/src/crawl.py (original)
+++ trunk/beacon/src/crawl.py Wed Apr 19 18:55:13 2006
@@ -228,8 +228,11 @@
# WARNING: item is a link, we need to follow it
dirname = os.path.realpath(item.filename)
log.info('add inotify for %s' % dirname)
- self.inotify.watch(dirname)
-
+ try:
+ self.inotify.watch(dirname)
+ except IOError, e:
+ log.error(e)
+
for child in self.db.query(parent=item):
if child._beacon_isdir:
# A directory. Check if it is already scanned or in the list of
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog