mirror of https://github.com/python/cpython.git
#15015: Fix accessing an non-existing attribute.
This commit is contained in:
parent
911fd327f1
commit
a26ad5a0a1
|
@ -470,8 +470,8 @@ def set_running_or_notify_cancel(self):
|
|||
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):
|
||||
|
|
Loading…
Reference in New Issue