Document FTP: fix open_data after 1e1118a2bd7ae

After the revert, the node exception is TypeError (so that it is clearly
distinguishable from any others).

bzr revid: p_christ@hol.gr-20100713103035-usb1dbnma2l9c4ju
This commit is contained in:
P. Christeas
2010-07-13 13:30:35 +03:00
parent a7eaf3bfc9
commit 8cd367f9ed
@@ -169,7 +169,10 @@ class abstracted_fs(object):
raise OSError(1, 'Operation not permited.')
# Reading operation
cr, node, rem = datacr
res = node.open_data(cr, mode)
try:
res = node.open_data(cr, mode)
except TypeError, e:
raise IOError(errno.EINVAL, "No data")
return res
# ok, but need test more