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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user