Skip to content

Commit

Permalink
Fix neopo versions command
Browse files Browse the repository at this point in the history
  • Loading branch information
nrobinson2000 committed May 22, 2024
1 parent 6ee2505 commit 717b93b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions neopo/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,17 @@ def versions_command(args):
for entry in reversed(json.load(firmware_file)):
version = entry["version"]
official_versions.add(version)
devices = ", ".join(
[
platform_convert(platform, "id", "name")
for platform in get_supported_platforms(version)
]
)

try:
devices = ", ".join(
[
platform_convert(platform, "id", "name")
for platform in get_supported_platforms(version)
]
)
except TypeError:
continue

print(" %s\t [ %s ]" % (version, devices))

custom_versions = None
Expand Down

0 comments on commit 717b93b

Please sign in to comment.