1.1 --- a/tools/get_profile.py Sun Aug 10 17:05:09 2014 +0200
1.2 +++ b/tools/get_profile.py Sun Aug 10 18:41:20 2014 +0200
1.3 @@ -25,7 +25,7 @@
1.4 return [username, fullname, email, image and basejoin(url, image) or ""]
1.5
1.6 except libxml2dom.LSException:
1.7 - return [username, "", username, ""]
1.8 + return None
1.9
1.10 def main():
1.11 progname = split(sys.argv[0])[-1]
1.12 @@ -41,7 +41,8 @@
1.13
1.14 stdout = codecs.getwriter("utf-8")(sys.stdout)
1.15 details = get_profile(url, username)
1.16 - print >>stdout, "\t".join(details)
1.17 + if details:
1.18 + print >>stdout, "\t".join(details)
1.19
1.20 if __name__ == "__main__":
1.21 main()