]> www.wagner.pp.ru Git - oss/ljdump.git/commit
Handle weird comment retrieval permissions case
authorTom Parker <palfrey@tevp.net>
Mon, 13 Apr 2009 23:50:00 +0000 (07:50 +0800)
committerGreg Hewgill <greg@hewgill.com>
Mon, 4 May 2009 11:38:59 +0000 (19:38 +0800)
commit97bb6a6a7d5db2c8dd3da33bd24252835d00c641
tree438bceb0094526be5f63615b420e6ca04edcf4d2
parent8c79e315b76bd83ec4d34b0644d450f84960f160
Handle weird comment retrieval permissions case

Saw the error

Fetching journal entries for: palfrey
Fetching journal entry L-867 (create)
Fetching journal comments for: palfrey
*** Error fetching comment meta, possibly not community maintainer?

Traceback (most recent call last):
 File "ljdump.py", line 358, in <module>
   ljdump(server, username, password, username)
 File "ljdump.py", line 244, in ljdump
   r.close()
AttributeError: 'dict' object has no attribute 'close'

(notably, this is my personal journal, so missing permissions shouldn't
happen)

This patch handles this weird case (which will probably never now happen
again)

Signed-off-by: Greg Hewgill <greg@hewgill.com>
ljdump.py