From 8f3670bbc5c1bd88f8ab1ef481cd6344ac551933 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Wed, 21 Mar 2012 10:01:01 -0700 Subject: [PATCH] fix build: make check_radio_versions.py okay with no args Change-Id: I3539383d9761b57152c04ba9198c724509ba6223 --- tools/check_radio_versions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/check_radio_versions.py b/tools/check_radio_versions.py index 83d3ab277f..ebe621f466 100755 --- a/tools/check_radio_versions.py +++ b/tools/check_radio_versions.py @@ -22,6 +22,9 @@ try: except ImportError: from sha import sha as sha1 +if len(sys.argv) < 2: + sys.exit(0) + build_info = {} f = open(sys.argv[1]) for line in f: