Skip to content

Commit

Permalink
[fix] linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Feb 13, 2020
1 parent 26b8dcc commit 184f452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiomisc/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def __recycler(self):

try:
await self._destroy_instance(instance)
except:
except Exception:
log.exception("Error when recycle instance %r", instance)
finally:
self._recycle_bin.task_done()
Expand Down Expand Up @@ -178,10 +178,10 @@ async def log_exception(coro):
log_exception(self._destroy_instance(instance))
)
for instance in instances
], return_exceptions=True
],
return_exceptions=True
),
timeout=timeout,
)

await cancel_tasks(self._tasks)

0 comments on commit 184f452

Please sign in to comment.