Skip to content

Commit

Permalink
error handling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
skelsec committed Nov 9, 2020
1 parent cd45390 commit 051fea5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jackdaw/gatherer/gatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,16 @@ async def run(self):
return False, e

finally:
if self.show_progress is True and self.progress_queue is None:
if self.progress_queue is not None:
await self.progress_queue.put(None)
if self.show_progress is True and self.progress_queue is None and self.progress_task is not None:
try:
await asyncio.wait_for(asyncio.gather(*[self.progress_task]), 1)
except asyncio.TimeoutError:
self.progress_task.cancel()

self.progress_refresh_task.cancel()
if self.progress_refresh_task is not None:
self.progress_refresh_task.cancel()



Expand Down

0 comments on commit 051fea5

Please sign in to comment.