From: Jon Parise Date: Thu, 8 Oct 2009 06:55:39 +0000 (+0800) Subject: Don't attempt to fetch a default userpic if the user hasn't set one. X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=d45d3ae7e90b1e0f3f2d2f93fde04b0312027058;p=oss%2Fljdump.git Don't attempt to fetch a default userpic if the user hasn't set one. --- diff --git a/ljdump.py b/ljdump.py index d7930f0..f6820af 100755 --- a/ljdump.py +++ b/ljdump.py @@ -163,7 +163,8 @@ def ljdump(Server, Username, Password, Journal): 'getpickwurls': 1, }, Password)) userpics = dict(zip(map(str, r['pickws']), r['pickwurls'])) - userpics['*'] = r['defaultpicurl'] + if r['defaultpicurl']: + userpics['*'] = r['defaultpicurl'] while True: r = server.LJ.XMLRPC.syncitems(dochallenge(server, {