Python Dict throws an exception if a key is not found. I needed to use the has_key function instead. TBR=danrubel

Review URL: http://codereview.chromium.org//8918030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2368 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
mrrussell@google.com 2011-12-13 01:28:28 +00:00
parent 27c00758c9
commit 4adf860b73

View file

@ -59,7 +59,7 @@ def Usage(progname):
def main(argv):
#allow local editor builds to deploy to a different bucket
if os.environ['DART_LOCAL_BUILD']:
if os.environ.has_key('DART_LOCAL_BUILD'):
gsdir = os.environ
else:
gsdir = GS_DIR