Skip to content

Commit

Permalink
Fix bugs in Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
affjljoo3581 committed Sep 19, 2020
1 parent 732fe49 commit 6f2dc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canrevan/crawling.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def _fetch_and_parse(self,
return await resp.text()

# Run `parse_fn` in subprocess from process-pool for parallelism.
loop = asyncio.get_running_loop()
loop = asyncio.get_event_loop()
return await loop.run_in_executor(
pool, parse_fn, await resp.text())

Expand Down

0 comments on commit 6f2dc27

Please sign in to comment.