Skip to content

Commit

Permalink
fix(smurf_tune): asyncio.Runner doesn't exist in 3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed Sep 13, 2024
1 parent 279f5b9 commit b4acff4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pysmurf/client/tune/smurf_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -3627,8 +3627,7 @@ def parallel_find_freq(self, bands=None, **kwargs):
if bands is None:
bands = self.bands

with asyncio.Runner() as runner:
freq, resp = runner.run(self._async_parallel_find_freq(bands, **kwargs))
freq, resp = asyncio.run(self._async_parallel_find_freq(bands, **kwargs))

return freq, resp

Expand Down

0 comments on commit b4acff4

Please sign in to comment.