Skip to content

Commit a26ad5a

Browse files
committed
#15015: Fix accessing an non-existing attribute.
1 parent 911fd32 commit a26ad5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/concurrent/futures/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@ def set_running_or_notify_cancel(self):
470470
return True
471471
else:
472472
LOGGER.critical('Future %s in unexpected state: %s',
473-
id(self.future),
474-
self.future._state)
473+
id(self),
474+
self._state)
475475
raise RuntimeError('Future in unexpected state')
476476

477477
def set_result(self, result):

0 commit comments

Comments
 (0)