Skip to content

Commit

Permalink
Removed call to asyncio.wait that passed a coroutine
Browse files Browse the repository at this point in the history
fixes #4107

(cherry picked from commit ae8ac72)
  • Loading branch information
EamonTracey authored and dkliban committed Jul 26, 2023
1 parent 1bf29cc commit 7c99672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/4107.bugfix
@@ -0,0 +1 @@
Updated the downloader's fetch method to comply with Python 3.11.
4 changes: 2 additions & 2 deletions pulpcore/download/base.py
Expand Up @@ -187,8 +187,8 @@ def fetch(self):
Raises:
Exception: Any fatal exception emitted during downloading
"""
done, _ = asyncio.get_event_loop().run_until_complete(asyncio.wait([self.run()]))
return done.pop().result()
result = asyncio.get_event_loop().run_until_complete(self.run())
return result

def _record_size_and_digests_for_data(self, data):
"""
Expand Down

0 comments on commit 7c99672

Please sign in to comment.