Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TitleReaderPlugin: return None triggers exception #16

Open
dentarg opened this issue Jan 3, 2016 · 1 comment
Open

TitleReaderPlugin: return None triggers exception #16

dentarg opened this issue Jan 3, 2016 · 1 comment

Comments

@dentarg
Copy link
Owner

dentarg commented Jan 3, 2016

[23:01:24] RECV: :[email protected] PRIVMSG #foo :http://example.org/image.png
argh <TitleReaderPlugin []> (<type 'exceptions.TypeError'>, TypeError("object of type 'NoneType' has no
 len()",), <traceback object at 0x7f25d299fcb0>) [('/home/rufwebot/pynik/ircbot.py', 64, 'execute_plugins',
 'plugin.__class__.__dict__[trigger](plugin, self, *arguments)'),
 ('/home/rufwebot/pynik/plugins/title_reader.py', 75, 'on_privmsg', 'bot.tell(target, self.clean(url, title))'),
 ('/home/rufwebot/pynik/ircbot.py', 112, 'tell', 'return self.client.tell(target, message)'),
 ('/home/rufwebot/pynik/ircclient/ircclient.py', 91, 'tell', 'if len(string) >= 399:')]
@dentarg dentarg changed the title TitleReaderPlugin and URL to image file TitleReaderPlugin: return None triggers exception Apr 3, 2016
@dentarg
Copy link
Owner Author

dentarg commented Apr 3, 2016

The exception happen whenever we return None from get_title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant