Skip to content

Commit

Permalink
Version 1.5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Oct 12, 2021
1 parent c65a0b3 commit aab434f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Latest changes

## 1.5.1.1

Better `__del__` handling

## 1.5.1.0

Remove pin and use `jsonrpcclient` 4.0
Expand Down
11 changes: 7 additions & 4 deletions bitcart/providers/jsonrpcrequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ async def _close(self) -> None:
await self.session.close()

def __del__(self) -> None:
if self._loop.is_running():
self._loop.create_task(self._close())
else:
self.session._connector._closed = True # type: ignore
try:
if self._loop.is_running():
self._loop.create_task(self._close())
else:
self.session._connector._closed = True # type: ignore
except Exception:
pass
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def main() -> None:
setup(
name="bitcart",
packages=find_packages(),
version="1.5.1.0",
version="1.5.1.1",
license="LGPLv3+",
description="BitcartCC coins support library",
long_description=open("README.md").read(),
Expand Down

0 comments on commit aab434f

Please sign in to comment.