From d0cde659ca03b3321174c35d2f1f8ce91c3ee725 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Sat, 15 Feb 2014 00:40:25 +0100 Subject: [PATCH] Let the no such package logs in first --- fdroidserver/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 0338a402..b10e2e2f 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -121,14 +121,14 @@ def read_app_args(args, allapps, allow_vercodes=False): apps = [app for app in allapps if app['id'] in vercodes] - if not apps: - raise Exception("No packages specified") if len(apps) != len(vercodes): allids = [app["id"] for app in allapps] for p in vercodes: if p not in allids: logging.critical("No such package: %s" % p) raise Exception("Found invalid app ids in arguments") + if not apps: + raise Exception("No packages specified") error = False for app in apps: -- 2.30.2