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

Updated whois plugin, fixed crash when certain registrar data is NoneType #246

Open
wants to merge 1 commit into
base: gonzobot
Choose a base branch
from

Conversation

K0HAX
Copy link

@K0HAX K0HAX commented May 24, 2018

This patch fixes the following traceback

Traceback (most recent call last):
File "/opt/CloudBot/cloudbot/plugin.py", line 456, in internal_launch
out = yield from task
File "/usr/lib64/python3.4/asyncio/futures.py", line 358, in __iter__
yield self  # This tells Task to wait for completion.
File "/usr/lib64/python3.4/asyncio/tasks.py", line 297, in _wakeup
future.result()
File "/usr/lib64/python3.4/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib64/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/CloudBot/cloudbot/plugin.py", line 423, in _execute_hook_threaded
return call_with_args(hook.function, event)
File "/opt/CloudBot/cloudbot/util/func_utils.py", line 19, in call_with_args
return func(*args)
File "/opt/CloudBot/plugins/whois.py", line 38, in whois
except TypeError:
TypeError: 'NoneType' object is not subscriptable

@linuxdaemon
Copy link

This repository is no longer maintained, it has been moved to snoonetIRC/CloudBot

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

Successfully merging this pull request may close these issues.

2 participants