Timidger / autowikiabot-py

Reddit bot that replies to comments with excerpt from linked wikia article or section.
Other
9 stars 1 forks source link

TypeError after every comment delete cycle #3

Closed Timidger closed 10 years ago

Timidger commented 10 years ago

After every autodelete cycle is complete, a TypeError is thrown:

('AUTODELETE CYCLES COMPLETED',)
('COMMENT SCORE CHECK CYCLE STARTED',)
(TypeError("argument of type 'builtin_function_or_method' is not iterable",),)

Full stack trace:

Traceback (most recent call last):
    File "autowikiabot-remover.py", line 200, in <module>
        if c.score < 1 or '#placeholder-awb' in c.body.lower:
    TypeError: argument of type 'builtin_function_or_method' is not iterable
    [2014-07-18 03:40:52] (TypeError("argument of type 'builtin_function_or_method' is not iterable",),)```
Timidger commented 10 years ago

Fixed with https://github.com/Timidger/autowikiabot-py/commit/fb574d03c07b70414a99a2d76109e22bb915971e