diff --git a/nile/cli.py b/nile/cli.py index 398980f..a00ed9e 100755 --- a/nile/cli.py +++ b/nile/cli.py @@ -165,6 +165,10 @@ def list_updates(self): games = self.config.get("library") if not installed_array: + if self.arguments.json: + # An empty string is not valid JSON, so create an empty but + # valid JSON string instead. + print(json.dumps(list())) self.logger.error("No games installed") return