From 717b93be949bc3e9e603e968a92cdf669f37d7fa Mon Sep 17 00:00:00 2001 From: Nathan Robinson Date: Wed, 22 May 2024 19:33:11 -0400 Subject: [PATCH] Fix neopo versions command --- neopo/toolchain.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/neopo/toolchain.py b/neopo/toolchain.py index 881f912..388b039 100644 --- a/neopo/toolchain.py +++ b/neopo/toolchain.py @@ -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