]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
additional information on fetch exception
authorGreg Hewgill <greg@hewgill.com>
Thu, 27 Aug 2009 07:41:25 +0000 (19:41 +1200)
committerGreg Hewgill <greg@hewgill.com>
Tue, 28 Dec 2010 23:10:21 +0000 (12:10 +1300)
ljdump.py

index f6820afa84c88fd6bc483e789b07bbe5175630c3..a6326bac23474234d9b796a2498cbd8005193612 100755 (executable)
--- a/ljdump.py
+++ b/ljdump.py
@@ -244,8 +244,9 @@ def ljdump(Server, Username, Password, Journal):
             try:
                 r = urllib2.urlopen(urllib2.Request(Server+"/export_comments.bml?get=comment_meta&startid=%d%s" % (maxid+1, authas), headers = {'Cookie': "ljsession="+ljsession}))
                 meta = xml.dom.minidom.parse(r)
-            except:
+            except Exception, x:
                 print "*** Error fetching comment meta, possibly not community maintainer?"
+                print "***", x
                 break
         finally:
             try:
@@ -280,8 +281,9 @@ def ljdump(Server, Username, Password, Journal):
             try:
                 r = urllib2.urlopen(urllib2.Request(Server+"/export_comments.bml?get=comment_body&startid=%d%s" % (maxid+1, authas), headers = {'Cookie': "ljsession="+ljsession}))
                 meta = xml.dom.minidom.parse(r)
-            except:
+            except Exception, x:
                 print "*** Error fetching comment body, possibly not community maintainer?"
+                print "***", x
                 break
         finally:
             r.close()