From: Daniel Martí Date: Fri, 14 Feb 2014 23:40:25 +0000 (+0100) Subject: Let the no such package logs in first X-Git-Tag: 0.2~280 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d0cde659ca03b3321174c35d2f1f8ce91c3ee725;p=fdroidserver.git Let the no such package logs in first --- 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: