kupiakos / LapisMirror

Mirrors images from various sites, and exports them to mirrors like imgur. Plugin-based.
MIT License
19 stars 6 forks source link

Error processing PRAW `MoreComments` #40

Open kupiakos opened 7 years ago

kupiakos commented 7 years ago

Seen purely by chance:

DEBUG - Processing submission
        permalink:https://www.reddit.com/r/homestuck/comments/5991bk/update_10029_s/
        url:      http://www.mspaintadventures.com/?s=6&p=010029&reddit=thisisntarepost
ERROR - Error while scanning submission! Traceback (most recent call last):
  File "lapis.py", line 357, in scan_submissions
    self.process_submission(submission)
  File "lapis.py", line 275, in process_submission
    for comment in submission.comments if comment.author):
  File "lapis.py", line 275, in <genexpr>
    for comment in submission.comments if comment.author):
  File "/app/.heroku/python/lib/python3.5/site-packages/praw/objects.py", line 92, in __getattr__
    raise AttributeError(msg)
AttributeError: '<class 'praw.objects.MoreComments'>' has no attribute 'author'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "lapis.py", line 452, in main
    lapis.scan_submissions()
  File "lapis.py", line 359, in scan_submissions
    self.log.error('Ran into error on submission %d' % submission.id)
TypeError: %d format: a number is required, not str

This was a fatal exception that restarted Lapis.