Commit d9b904fc authored by Rahix's avatar Rahix
Browse files

Merge 'Display apps without metadata.json'

See merge request card10/firmware!364
parents ead70852 53419ff7
...@@ -55,8 +55,15 @@ def enumerate_apps(apps=None): ...@@ -55,8 +55,15 @@ def enumerate_apps(apps=None):
info["name"], "/apps/{}/{}".format(app, info.get("bin", "")) info["name"], "/apps/{}/{}".format(app, info.get("bin", ""))
) )
except Exception as e: except Exception as e:
print("Could not load /apps/{}/metadata.json!".format(app)) print("'{}': metadata.json is invalid ... hoping for the best.".format(app))
sys.print_exception(e) sys.print_exception(e)
pyfile = "/apps/{}/".format(app)
yield App(app, pyfile)
except OSError:
print(pyfile, "does not even exist :(")
def usb_mode(disp): def usb_mode(disp):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment