ghosttrap-cli 0.3.1__tar.gz → 0.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghosttrap-cli
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Watch for errors streaming from ghosttrap.io
5
5
  Project-URL: Homepage, https://github.com/alex-rowley/ghosttrap-cli
6
6
  Requires-Python: >=3.10
@@ -303,7 +303,13 @@ async def watch(server_url, token):
303
303
  async def peek(server_url, token):
304
304
  config = _load_config()
305
305
  _check_cli_version(config)
306
- await _connect_and_handle(server_url, token, config, once=True)
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, ConnectionError, OSError):
311
+ print("connection lost, reconnecting...", file=sys.stderr)
312
+ await asyncio.sleep(60)
307
313
 
308
314
 
309
315
  def main():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghosttrap-cli
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Watch for errors streaming from ghosttrap.io
5
5
  Project-URL: Homepage, https://github.com/alex-rowley/ghosttrap-cli
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ghosttrap-cli"
7
- version = "0.3.1"
7
+ version = "0.3.2"
8
8
  description = "Watch for errors streaming from ghosttrap.io"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes