ricardocabral/iskdaemon — Issue #35: handle error when trying to add inexisting path
Author: ricardocabral
Created: 2012-01-20 11:38:04+00:00
State: open
Labels: P:Major

Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-i686.egg/twisted/web/server.py", line 132, in process
self.render(resrc)
File "/usr/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-i686.egg/twisted/web/server.py", line 167, in render
body = resrc.render(self)
File "/usr/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-i686.egg/twisted/web/resource.py", line 216, in render
return m(request)
File "/usr/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-i686.egg/twisted/web/xmlrpc.py", line 172, in render_POST
d = defer.maybeDeferred(function, *args)
--- ---
File "/usr/lib/python2.6/site-packages/Twisted-11.1.0-py2.6-linux-i686.egg/twisted/internet/defer.py", line 134, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.6/site-packages/isk_daemon-0.9.2-py2.6-linux-i686.egg/core/imgdbapi.py", line 626, in addDir
return imgDB.addDir(dbId, path, recurse)
File "/usr/lib/python2.6/site-packages/isk_daemon-0.9.2-py2.6-linux-i686.egg/imgSeekLib/utils.py", line 63, in checkFunc
return func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/isk_daemon-0.9.2-py2.6-linux-i686.egg/imgSeekLib/utils.py", line 55, in echoFunc
return func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/isk_daemon-0.9.2-py2.6-linux-i686.egg/imgSeekLib/ImageDB.py", line 191, in addDir
for fil in os.listdir(path):
exceptions.OSError: [Errno 2] No such file or directory: '/home/ec2-user/data/ '