We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42033d9 commit b72665dCopy full SHA for b72665d
icekube/cli.py
@@ -92,8 +92,9 @@ def download(output_dir: str):
92
if resource.raw:
93
current_group.append(json.loads(resource.raw))
94
95
- with open(path / f"{current_type}.json", "w") as fs:
96
- fs.write(json.dumps(current_group, indent=4, default=str))
+ if current_type:
+ with open(path / f"{current_type}.json", "w") as fs:
97
+ fs.write(json.dumps(current_group, indent=4, default=str))
98
99
100
@app.command()
0 commit comments