Skip to content

Commit 352d559

Browse files
committed
ENH: more work on the cli tool
1 parent eb011d1 commit 352d559

File tree

4 files changed

+282
-71
lines changed

4 files changed

+282
-71
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies = [
2929
]
3030

3131
[project.scripts]
32-
save-and-restore = "save_and_restore_api.tools.upload:main"
32+
save-and-restore = "save_and_restore_api.tools.cli:main"
3333

3434
[project.urls]
3535
Homepage = "https://github.com/dmgav/save-and-restore-api"

src/save_and_restore_api/_api_threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def open(self):
3434
print(f"info={info}")
3535
await SR.close()
3636
"""
37-
if self._client is not None:
37+
if self._client is None:
3838
self._client = httpx.Client(base_url=self._base_url, timeout=self._timeout)
3939

4040
def close(self):

0 commit comments

Comments
 (0)