#15015: Fix accessing an non-existing attribute.

This commit is contained in:
Brian Quinlan 2012-06-11 12:59:07 +10:00
parent 911fd327f1
commit a26ad5a0a1
1 changed files with 2 additions and 2 deletions

View File

@ -470,8 +470,8 @@ class Future(object):
return True
else:
LOGGER.critical('Future %s in unexpected state: %s',
id(self.future),
self.future._state)
id(self),
self._state)
raise RuntimeError('Future in unexpected state')
def set_result(self, result):