[svn r38095] getremoteerror does not raise!

--HG--
branch : trunk
This commit is contained in:
fijal 2007-02-07 19:36:53 +01:00
parent 337eea81cb
commit 6e58395de0
1 changed files with 5 additions and 11 deletions

View File

@ -33,17 +33,11 @@ class MasterNode(object):
# send start report
self.reporter(repevent.SendItem(self.channel, item))
except IOError:
try:
channel._getremoterror()
except:
# if this were not remote, we've got no clue
excinfo = py.code.ExceptionInfo()
for i in excinfo.traceback:
print str(i)[2:-1]
print excinfo
else:
raise
print "Sending error, channel IOError"
print channel._getremoterror()
# XXX: this should go as soon as we'll have proper detection
# of hanging nodes and such
raise
def itemgen(colitems, reporter, keyword, reporterror):
def rep(x):