From 1554c6229999783fbf0a3f7d5303ea21d0e8ec3d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 4 Jan 2007 03:23:12 +0000 Subject: [PATCH] Make sure that myid is defined for the previous commit. svn path=/main/trunk/; revision=5459 --- pym/getbinpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/getbinpkg.py b/pym/getbinpkg.py index 058919bf1..6939e4840 100644 --- a/pym/getbinpkg.py +++ b/pym/getbinpkg.py @@ -522,6 +522,7 @@ def dir_get_metadata(baseurl, conn=None, chunk_size=3000, verbose=1, usingcache= (x not in metadata[baseurl]["data"].keys())): sys.stderr.write(yellow("x")) metadata[baseurl]["modified"] = 1 + myid = None for retry in xrange(3): try: myid = file_get_metadata( @@ -536,7 +537,7 @@ def dir_get_metadata(baseurl, conn=None, chunk_size=3000, verbose=1, usingcache= conn, protocol, address, params, headers = create_conn( baseurl) - if myid[0]: + if myid and myid[0]: metadata[baseurl]["data"][x] = make_metadata_dict(myid) elif verbose: sys.stderr.write(red("!!! Failed to retrieve metadata on: ")+str(x)+"\n") -- 2.26.2