ghosttrap-cli 0.3.18__tar.gz → 0.3.19__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.18
3
+ Version: 0.3.19
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
@@ -13,7 +13,7 @@ import urllib.request
13
13
 
14
14
  import websockets
15
15
 
16
- __version__ = "0.3.18"
16
+ __version__ = "0.3.19"
17
17
 
18
18
  GHOSTTRAP_SERVER = "wss://ghosttrap.io/stream/"
19
19
  CONFIG_DIR = os.path.expanduser("~/.ghosttrap")
@@ -206,9 +206,14 @@ def _get_repo_entry(config, requested=None):
206
206
  for k, entry in repos.items():
207
207
  if f"{entry.get('owner')}/{entry.get('name')}" == requested:
208
208
  return k, entry
209
- available = sorted(f"{e['owner']}/{e['name']}" for e in repos.values())
209
+ available = sorted(
210
+ f"{e.get('owner')}/{e.get('name')}"
211
+ for e in repos.values()
212
+ if e.get('owner') and e.get('name')
213
+ )
210
214
  print(f"error: '{requested}' is not in your config.", file=sys.stderr)
211
- print(f"available: {', '.join(available)}", file=sys.stderr)
215
+ if available:
216
+ print(f"available: {', '.join(available)}", file=sys.stderr)
212
217
  sys.exit(1)
213
218
  cwd_repo = _detect_repo_from_cwd()
214
219
  if cwd_repo:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghosttrap-cli
3
- Version: 0.3.18
3
+ Version: 0.3.19
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.18"
7
+ version = "0.3.19"
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