From d45d3ae7e90b1e0f3f2d2f93fde04b0312027058 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Thu, 8 Oct 2009 14:55:39 +0800 Subject: [PATCH] Don't attempt to fetch a default userpic if the user hasn't set one. --- ljdump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, { -- 2.39.5