ghosttrap-cli 0.3.1__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/PKG-INFO +1 -1
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli/cli.py +9 -3
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli.egg-info/PKG-INFO +1 -1
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/pyproject.toml +1 -1
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/README.md +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli/__init__.py +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli.egg-info/SOURCES.txt +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli.egg-info/dependency_links.txt +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli.egg-info/entry_points.txt +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli.egg-info/requires.txt +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/ghosttrap_cli.egg-info/top_level.txt +0 -0
- {ghosttrap_cli-0.3.1 → ghosttrap_cli-0.3.3}/setup.cfg +0 -0
|
@@ -295,15 +295,21 @@ async def watch(server_url, token):
|
|
|
295
295
|
while True:
|
|
296
296
|
try:
|
|
297
297
|
await _connect_and_handle(server_url, token, config, once=False)
|
|
298
|
-
except websockets.ConnectionClosed:
|
|
298
|
+
except (websockets.ConnectionClosed, websockets.InvalidStatus, ConnectionError, OSError):
|
|
299
299
|
print("connection lost, reconnecting...", file=sys.stderr)
|
|
300
|
-
await asyncio.sleep(
|
|
300
|
+
await asyncio.sleep(60)
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
async def peek(server_url, token):
|
|
304
304
|
config = _load_config()
|
|
305
305
|
_check_cli_version(config)
|
|
306
|
-
|
|
306
|
+
while True:
|
|
307
|
+
try:
|
|
308
|
+
await _connect_and_handle(server_url, token, config, once=True)
|
|
309
|
+
return # got an error, printed it, done
|
|
310
|
+
except (websockets.ConnectionClosed, websockets.InvalidStatus, ConnectionError, OSError):
|
|
311
|
+
print("connection lost, reconnecting...", file=sys.stderr)
|
|
312
|
+
await asyncio.sleep(60)
|
|
307
313
|
|
|
308
314
|
|
|
309
315
|
def main():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|