]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
Don't attempt to fetch a default userpic if the user hasn't set one.
authorJon Parise <jon@indelible.org>
Thu, 8 Oct 2009 06:55:39 +0000 (14:55 +0800)
committerGreg Hewgill <greg@hewgill.com>
Wed, 17 Feb 2010 08:16:03 +0000 (16:16 +0800)
ljdump.py

index d7930f0c8d25490d495b41ce7cfcab14e08b219d..f6820afa84c88fd6bc483e789b07bbe5175630c3 100755 (executable)
--- 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, {