Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-600

AsyncIOMotorGridOut.open() fails with AttributeError: '_asyncio.Future' object has no attribute '_future'

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2
    • Affects Version/s: 2.0, 2.1
    • Component/s: None
    • None

      AsyncIOMotorGridOut.open() was broken by this commit: https://github.com/mongodb/motor/commit/4d95efaadbfde96aba504cc5aae01f519f9dc5c3

        File "/Users/shane/git/motor/motor/motor_gridfs.py", line 164, in open
          return self._framework.chain_return_value(self._ensure_file(),
        File "/Users/shane/git/motor/motor/frameworks/asyncio/__init__.py", line 100, in chain_return_value
          future._future.add_done_callback(functools.partial(loop.add_callback, copy))
      AttributeError: '_asyncio.Future' object has no attribute '_future'
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: