Skip to content

Commit

Permalink
Update kaitai plugin listing entry to remove subdir (since it moved);…
Browse files Browse the repository at this point in the history
… generate error when content is missing from fetched plugin url
  • Loading branch information
kristopax committed Aug 15, 2024
1 parent 00fe533 commit 6e3a4e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def getPluginJson(plugin, shortUrls):
else:
pluginjson = f"{projectUrl}/contents/plugin.json?ref={plugin['tag']}"
try:
content = getfile(pluginjson).json()['content']
if (content := getfile(pluginjson).json().get("content")) is None:
print(f"Unable to get content from {pluginjson}")
return None
try:
data = json.loads(base64.b64decode(content))
except:
Expand Down
3 changes: 1 addition & 2 deletions listing.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
},
{
"name": "Vector35/kaitai",
"auto_update": true,
"subdir": "plugin"
"auto_update": true
},
{
"name": "Vector35/snippets",
Expand Down

0 comments on commit 6e3a4e6

Please sign in to comment.